ansible-roles/evoacme/handlers/main.yml
David Prevot fafff25c20
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
Add “when: not ansible_check_mode” to allow more --check
2022-12-02 17:40:43 +01:00

31 lines
540 B
YAML

- name: newaliases
command: newaliases
when: not ansible_check_mode
- name: Test Apache conf
command: apache2ctl -t
notify: "Reload Apache conf"
when: not ansible_check_mode
- name: reload apache2
service:
name: apache2
state: reloaded
when: not ansible_check_mode
- name: apt update
apt:
update_cache: yes
- name: reload squid3
service:
name: squid3
state: reloaded
when: not ansible_check_mode
- name: reload squid
service:
name: squid
state: reloaded
when: not ansible_check_mode