infra/ansible/roles/ns/handlers/main.yml

15 lines
422 B
YAML
Executable file

---
# Handler for the webtier: handlers are called by other plays.
# See http://docs.ansible.com/playbooks_intro.html for more information about handlers.
- name: Restart bind
ansible.builtin.service:
name: "{{ 'bind9' if ansible_os_family == 'Debian' else 'named' }}"
state: restarted
become: true
- name: Restart firewalld
ansible.builtin.service:
name: firewalld
state: restarted
become: true