Comments (5)
Hi @stdevel
I provided a PR, are you able and willing to test this PR before I hit the merge button?
Thanks in advance.
Kind regards,
Werner
from ansible-zabbix-web.
Hi @stdevel
I applied the suggested change to the PR.
from ansible-zabbix-web.
Awesome! Thanks for your support - so I think it's safe to merge now. 👍
from ansible-zabbix-web.
Hi @dj-wasabi,
thanks for the fast replay and the PR!
It works if I set selinux_allow_zabbix_can_network
to true
. If I don't do so, the dependency is skipped and the task fails again:
TASK [dj-wasabi.zabbix-web : RedHat | Install related SELinux package] ***************************************************************************************skipping: [localhost]
...
TASK [dj-wasabi.zabbix-web : Allow httpd to connect to db (SELinux)] ***********
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: No module named semanage
fatal: [zabbix]: FAILED! => {"changed": false, "msg": "Failed to import the required Python library (libsemanage-python) on localhost.localdomain's Python /usr/bin/python. Please read module documentation and install in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"}
I think you need to make one adjustment to /tasks/main.yml
(see when
):
- name: "Allow httpd to connect to db (SELinux)"
seboolean:
name: httpd_can_network_connect_db
persistent: yes
state: yes
when:
- ansible_selinux.status == "enabled"
- selinux_allow_zabbix_can_network
tags: selinux
With this change, the role works fine for me.
from ansible-zabbix-web.
@stdevel Have merged the PR.
Thank you for testing! 👍
from ansible-zabbix-web.
Related Issues (20)
- Allow setting of php environment variables in zabbix.conf.php
- Problem with first install in Debian 9x HOT 2
- Installation fails on Ubuntu 18.04 HOT 1
- SSLPassPhraseDialog setting problems - /usr/libexec/httpd-ssl-pass-dialog HOT 6
- update readme to include correct examples HOT 3
- Upgrade from 3.4 to 4.0 HOT 1
- Security problem apache 2.4 config
- Why is my playbook installing postgresql when I configured the role to configure mysql HOT 3
- zabbix_timezone has no effect on apache.conf
- Apache 2 HOT 2
- Dry-run HOT 3
- Set listen ip for the zabbix virtual host HOT 1
- php-mysql installation on Debian 9
- Make Apache optional but keep as default HOT 2
- role shouldn't always remove conf-xxx/zabbix.conf on Debian
- Install zabbix-web-pgsql: Trying other mirror Error downloading packages
- Deal with unresolvable zabbix_server_hostname
- zabbix 4.4 is not supported HOT 4
- php_value should be placed in php-fpm and not httpd config HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-zabbix-web.