29 lines
674 B
YAML
29 lines
674 B
YAML
- name: Create a etckeeper commit
|
|
command: "etckeeper commit 'automatrop {{ ansible_date_time.iso8601 }}'"
|
|
listen: "etc changed"
|
|
become: yes
|
|
|
|
- name: Restart chrony
|
|
systemd:
|
|
name: chronyd
|
|
state: restarted
|
|
listen: chrony reconfigured
|
|
become: yes
|
|
|
|
- name: Reload systemd daemon
|
|
systemd:
|
|
daemon_reload: yes
|
|
listen: systemd changed
|
|
become: yes
|
|
|
|
- name: Restart wpa_supplicant
|
|
systemd:
|
|
name: "wpa_supplicant@{{ item }}"
|
|
state: restarted
|
|
become: yes
|
|
loop: "{{ ansible_interfaces }}"
|
|
when: "item.startswith('wl')"
|
|
listen: wpa_supplicant changed
|
|
# Could probably use something better like
|
|
# listing /sys/class/ieee80211/*/device/net/
|