Don't use centos pp in fedora, try to work with zabbix-selinux instead.
This commit is contained in:
parent
b9e7d97c8d
commit
c258ef5c6a
2 changed files with 3 additions and 1 deletions
|
@ -25,10 +25,11 @@
|
|||
register: sepolicy
|
||||
with_items:
|
||||
- centos-zabbix-agent.pp
|
||||
when: ansible_distribution == "Centos"
|
||||
|
||||
- name: reload custom selinux files
|
||||
shell: /usr/sbin/semodule -u "/etc/selinux/centos/centos-zabbix-agent.pp"
|
||||
when: ansible_selinux.status == "enabled" and sepolicy.changed
|
||||
when: ansible_distribution == "Centos" and ansible_selinux.status == "enabled" and sepolicy.changed
|
||||
|
||||
- name: Allowing zabbix to connect to network resources
|
||||
seboolean:
|
||||
|
|
|
@ -4,5 +4,6 @@ pkgs_list:
|
|||
zabbix_pkgs_list:
|
||||
- zabbix-agent
|
||||
- zabbix # provides zabbix_sender
|
||||
- zabbix-selinux
|
||||
- bc
|
||||
- ncurses-compat-libs # Needed for some megacli tools and raid monitoring checks through zabbix_sender
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue