Geoffrey Frogeye
c37a709b01
It's, uh, a bit ugly. But let's try to make it work for now, improve later. Apparently my wpa_supplicant config file was visible for everyone already, so that's not a regression :D
31 lines
885 B
YAML
31 lines
885 B
YAML
- name: Create a etckeeper commit
|
|
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:
|
|
name: chronyd
|
|
state: restarted
|
|
listen: chrony reconfigured
|
|
become: yes
|
|
|
|
- name: Reload systemd daemon
|
|
systemd:
|
|
daemon_reload: yes
|
|
listen: systemd changed
|
|
become: yes
|
|
|
|
- name: Warn about changed Panfrost config
|
|
debug:
|
|
msg: "The Panfrost display driver configuration was changed, but needs a reboot to be applied."
|
|
listen: panfrost config changed
|
|
|
|
- name: Reload systemd-logind
|
|
command: systemctl kill -s HUP systemd-logind
|
|
become: yes
|
|
listen: systemd-logind config changed
|