Debian Codegraph @

ansible_collections/community/zabbix/roles/zabbix_web/handlers/main.yml

raw symbols SCIP
1 ---
2 - name: restart apache
3 ansible.builtin.service:
4 name: "{{ _apache_service }}"
5 state: restarted
6 enabled: true
7 become: true
8
9 - name: test nginx config
10 listen: restart nginx
11 ansible.builtin.command: nginx -t
12 register: zabbix_nginx_cfg_check
13 notify: restart nginx tested
14 become: true
15
16 - name: restart nginx tested
17 ansible.builtin.service:
18 name: nginx
19 state: restarted
20 enabled: true
21 become: true
22 when:
23 - zabbix_nginx_cfg_check.rc == 0
24
25 - name: restart php-fpm-version
26 ansible.builtin.service:
27 name: php{{ zabbix_web_php_installed_version }}-fpm
28 state: restarted
29 enabled: true
30 become: true
31 when: ansible_facts['os_family'] == 'Debian'
32
33 - name: restart php-fpm
34 ansible.builtin.service:
35 name: php-fpm
36 state: restarted
37 enabled: true
38 become: true
39 when: >
40 ansible_facts['os_family'] == 'Suse' or
41 ansible_facts['os_family'] == 'RedHat'