19 lines
357 B
YAML
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
|