File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
# defaults file for ansible-netplan
3
- netplan_config_file : /etc/netplan/config.yaml
3
+ netplan_config_file : /etc/netplan/ansible- config.yaml
4
4
5
5
# switch to enable/disable the role completely
6
6
netplan_enabled : true
7
7
8
- # Either networkd or NetworkManager
9
- netplan_renderer : networkd
8
+ # Configured devices get handled by systemd- networkd by default, unless explicitly marked as managed by a specific renderer ( NetworkManager)
9
+ netplan_renderer :
10
10
11
11
netplan_configuration :
12
12
{}
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ galaxy_info:
10
10
platforms :
11
11
- name : Ubuntu
12
12
versions :
13
- - artful
14
13
- bionic
14
+ - focal
15
15
16
16
galaxy_tags :
17
17
- networking
Original file line number Diff line number Diff line change 1
1
---
2
2
network:
3
3
version: {{ netplan_configuration['network'] ['version'] |default('2') }}
4
+ {% if netplan_renderer is not none %}
4
5
renderer: {{ netplan_renderer }}
6
+ {% endif %}
5
7
{% if netplan_configuration ['network' ]['ethernets' ] is defined %}
6
8
ethernets:
7
9
{{ netplan_configuration['network'] ['ethernets'] |to_nice_yaml|indent(4, true) }}
You can’t perform that action at this time.
0 commit comments