servers/roles/alpine/handlers/main.yml

23 lines
466 B
YAML

- name: restart networking
service:
name: networking
state: restarted
when: "'handler' not in ansible_skip_tags"
- name: reload sshd
service:
name: sshd
state: reloaded
when: "'handler' not in ansible_skip_tags"
- name: reload nftables
service:
name: nftables
state: reloaded
when: "'handler' not in ansible_skip_tags"
- name: update package cache
package:
update_cache: true
when: "'handler' not in ansible_skip_tags"