ansible/roles/zabbix/zabbix_agent/handlers/main.yml

8 lines
251 B
YAML
Raw Normal View History

---
2021-03-16 14:30:43 +01:00
- name: restart_zabbix_agent
service: name=zabbix-agent state=restarted
- name: reload custom selinux files
ansible.builtin.shell: /usr/sbin/semodule -u "/etc/selinux/centos/centos-zabbix-agent.pp"
2021-03-16 14:30:43 +01:00
when: ansible_selinux.mode == "enforcing"