Replaced install-arch with something Ansible!
This commit is contained in:
parent
a883596cf0
commit
1a8502002a
21 changed files with 524 additions and 4 deletions
28
config/automatrop/roles/system/handlers/main.yaml
Normal file
28
config/automatrop/roles/system/handlers/main.yaml
Normal file
|
@ -0,0 +1,28 @@
|
|||
- 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/
|
Loading…
Add table
Add a link
Reference in a new issue