Server IP : 85.214.239.14 / Your IP : 18.117.98.194 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/ansible_collections/community/zabbix/roles/zabbix_web/tasks/ |
Upload File : |
--- - name: "SELinux | RedHat | Install related SELinux package" yum: name: - libsemanage-python state: present environment: http_proxy: "{{ zabbix_http_proxy | default(None) | default(omit) }}" https_proxy: "{{ zabbix_https_proxy | default(None) | default(omit) }}" register: zabbix_web_dependencies_installed until: zabbix_web_dependencies_installed is succeeded become: true when: - ansible_os_family == "RedHat" - selinux_allow_zabbix_can_network - ansible_distribution_major_version == "7" or ansible_distribution_major_version == "6" tags: - zabbix-web - name: "SELinux | RedHat | Install related SELinux package on RHEL9 and RHEL8" yum: name: - python3-libsemanage state: present environment: http_proxy: "{{ zabbix_http_proxy | default(None) | default(omit) }}" https_proxy: "{{ zabbix_https_proxy | default(None) | default(omit) }}" register: zabbix_web_dependencies_installed until: zabbix_web_dependencies_installed is succeeded become: true when: - ansible_os_family == "RedHat" - selinux_allow_zabbix_can_network - ansible_distribution_major_version|int >= 8 tags: - zabbix-web - name: "SELinux | RedHat | Enable zabbix_can_network SELinux boolean" ansible.posix.seboolean: name: zabbix_can_network state: true persistent: true become: true when: - ansible_os_family == "RedHat" - selinux_allow_zabbix_can_network tags: - zabbix-web - name: "SELinux | Allow httpd to connect to db (SELinux)" ansible.posix.seboolean: name: httpd_can_network_connect_db persistent: true state: true become: true when: - ansible_selinux.status == "enabled" - selinux_allow_zabbix_can_network tags: selinux - name: "SELinux | Allow httpd to connect to zabbix (SELinux)" ansible.posix.seboolean: name: httpd_can_connect_zabbix persistent: true state: true become: true when: - ansible_selinux.status == "enabled" - selinux_allow_zabbix_can_network tags: selinux - name: "SELinux | Allow httpd to connect to ldap (SELinux)" ansible.posix.seboolean: name: httpd_can_connect_ldap persistent: true state: true become: true when: - ansible_selinux.status == "enabled" - zabbix_apache_can_connect_ldap | bool tags: selinux