fix: description of tasks
This commit is contained in:
parent
ac49d7d3d5
commit
1141bf02a8
@ -3,12 +3,12 @@
|
|||||||
- name: Load variables
|
- name: Load variables
|
||||||
include_vars: "{{ ansible_os_family }}.yml"
|
include_vars: "{{ ansible_os_family }}.yml"
|
||||||
|
|
||||||
- name: "remove existing systemd-networkd configuration"
|
- name: "Remove existing systemd-networkd configuration"
|
||||||
file:
|
file:
|
||||||
path: "/etc/systemd/network"
|
path: "/etc/systemd/network"
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
- name: "create systemd-networkd directory"
|
- name: "Create systemd-networkd directory"
|
||||||
file:
|
file:
|
||||||
path: "/etc/systemd/network"
|
path: "/etc/systemd/network"
|
||||||
owner: root
|
owner: root
|
||||||
@ -27,7 +27,7 @@
|
|||||||
mode: 0644
|
mode: 0644
|
||||||
when: item.netdev_options is defined and
|
when: item.netdev_options is defined and
|
||||||
item.netdev_options | selectattr("key", "==", "Kind") and
|
item.netdev_options | selectattr("key", "==", "Kind") and
|
||||||
item.netdev_options | selectattr("value", "!=", "WireGuard")
|
item.netdev_options | selectattr("value", "!=", "wireguard")
|
||||||
with_items: "{{ systemd_networkd_netdev }}"
|
with_items: "{{ systemd_networkd_netdev }}"
|
||||||
|
|
||||||
- name: Create sensitive systemd.netdev files
|
- name: Create sensitive systemd.netdev files
|
||||||
@ -39,8 +39,9 @@
|
|||||||
mode: 0600
|
mode: 0600
|
||||||
when: item.netdev_options is defined and
|
when: item.netdev_options is defined and
|
||||||
item.netdev_options | selectattr("key", "equalto", "Kind") and
|
item.netdev_options | selectattr("key", "equalto", "Kind") and
|
||||||
item.netdev_options | selectattr("value", "equalto", "WireGuard")
|
item.netdev_options | selectattr("value", "equalto", "wireguard")
|
||||||
with_items: "{{ systemd_networkd_netdev }}"
|
with_items: "{{ systemd_networkd_netdev }}"
|
||||||
|
no_log: true
|
||||||
notify: restart networkd
|
notify: restart networkd
|
||||||
|
|
||||||
- name: Create systemd.networkd files
|
- name: Create systemd.networkd files
|
||||||
@ -63,25 +64,25 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
|
||||||
- name: start and enable networkd
|
- name: Start and enable systemd-networkd
|
||||||
service:
|
service:
|
||||||
name: systemd-networkd
|
name: systemd-networkd
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
|
|
||||||
- name: start and enable resolved
|
- name: Start and enable systemd-resolved
|
||||||
service:
|
service:
|
||||||
name: systemd-resolved
|
name: systemd-resolved
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
|
|
||||||
- name: set timezone
|
- name: Set system timezone
|
||||||
timezone:
|
timezone:
|
||||||
name: "{{ systemd_timesyncd_timezone }}"
|
name: "{{ systemd_timesyncd_timezone }}"
|
||||||
|
|
||||||
- name: start and enable timesyncd
|
- name: Start and enable systemd-timesyncd
|
||||||
service:
|
service:
|
||||||
name: systemd-timesyncd
|
name: systemd-timesyncd
|
||||||
state: started
|
state: started
|
||||||
|
Loading…
Reference in New Issue
Block a user