Debian Codegraph @

ansible_collections/community/zabbix/roles/zabbix_agent/tasks/selinux.yml

raw symbols SCIP
1 ---
2 - name: "SELinux | Debian | Install related SELinux packages"
3 ansible.builtin.package:
4 name:
5 - policycoreutils-python-utils
6 update_cache: true
7 install_recommends: "{{ zabbix_apt_install_recommends | default(_zabbix_agent_install_recommends | default(omit)) }}"
8 environment:
9 http_proxy: "{{ zabbix_http_proxy | default('') }}"
10 https_proxy: "{{ zabbix_https_proxy | default('') }}"
11 register: zabbix_agent_selinux_installed
12 until: zabbix_agent_selinux_installed is succeeded
13 become: true
14 when: ansible_facts['os_family'] == "Debian"
15 tags:
16 - install
17
18 - name: "SELinux | RedHat | Install related SELinux packages"
19 ansible.builtin.package:
20 name:
21 - python3-libsemanage
22 - python3-policycoreutils
23 - zabbix-selinux-policy
24 environment:
25 http_proxy: "{{ zabbix_http_proxy | default('') }}"
26 https_proxy: "{{ zabbix_https_proxy | default('') }}"
27 register: zabbix_agent_selinux_installed
28 until: zabbix_agent_selinux_installed is succeeded
29 when: ansible_facts['os_family'] == "RedHat"
30 become: true
31 tags:
32 - install
33
34 - name: "SELinux | Set booleans"
35 when: item.is_available
36 ansible.posix.seboolean:
37 name: "{{ item.name }}"
38 state: "{{ item.state }}"
39 persistent: true
40 become: true
41 tags:
42 - config
43 loop:
44 - name: zabbix_run_sudo
45 state: "{{ selinux_allow_zabbix_run_sudo | bool }}"
46 is_available: "{{ ansible_facts['os_family'] in ['RedHat'] }}"