Fix automatrop system/access roles
This commit is contained in:
parent
729de4013e
commit
c9657f69d4
3 changed files with 38 additions and 17 deletions
|
@ -2,6 +2,9 @@
|
|||
command: "etckeeper commit 'automatrop {{ ansible_date_time.iso8601 }}'"
|
||||
listen: "etc changed"
|
||||
become: yes
|
||||
register: etckeeper_commit
|
||||
failed_when: "etckeeper_commit.rc != 0 and 'nothing to commit' not in etckeeper_commit.stdout"
|
||||
changed_when: "'nothing to commit' not in etckeeper_commit.stdout"
|
||||
|
||||
- name: Restart chrony
|
||||
systemd:
|
||||
|
@ -26,3 +29,8 @@
|
|||
listen: wpa_supplicant changed
|
||||
# Could probably use something better like
|
||||
# listing /sys/class/ieee80211/*/device/net/
|
||||
|
||||
- name: Warn about changed Wi-Fi setup
|
||||
debug:
|
||||
msg: "The Wi-Fi configuration was changed, but not applied to let this playbook finish. A reboot is required."
|
||||
listen: wifi setup changed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue