ansible-base/roles/icinga2_server/handlers/main.yml
2020-10-03 12:00:19 +02:00

19 lines
357 B
YAML

---
- name: package repository updated
apt:
update_cache: yes
when: ansible_os_family == 'Debian'
- name: "restart icinga2"
service:
name: "{{ icinga2_server_icinga2_service }}"
enabled: yes
state: restarted
- name: "restart apache2"
service:
name: "{{ icinga2_server_apache2_service }}"
enabled: yes
state: restarted