Skip to content
This repository has been archived by the owner on May 23, 2020. It is now read-only.

Make Apache optional but keep as default #58

Closed
kr4ut opened this issue Jun 22, 2019 · 2 comments
Closed

Make Apache optional but keep as default #58

kr4ut opened this issue Jun 22, 2019 · 2 comments

Comments

@kr4ut
Copy link
Contributor

kr4ut commented Jun 22, 2019

@dj-wasabi We like your work here and want to contribute 👍 Instead of ending up like so often writing an own one we rather like to enrich this role. First we like to make the Apache usage optional for getting internally rid of it's role dependency but keep it as default for compatibility. Will send you the PR later ...

@hatifnatt
Copy link

@kr4ut can you please describe how exactly dependency for geerlingguy.apache can be skipped? I can't get it to work. If I don't have geerlingguy.apache installed I've got error.

ERROR! the role 'geerlingguy.apache' was not found in ~/ansible/roles
The error appears to be in '~/roles/ansible-zabbix-web/meta/main.yml': line 29, column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

dependencies:
  - name: geerlingguy.apache
    ^ here

Variables applied to host is very simple

zabbix_version: 4.2
zabbix_web_package_state: present
zabbix_url: tld.here
zabbix_websrv: none

Although if geerlingguy.apache installed all apache steps is correctly skipped during playbook execution.
Am I right and dependency must be installed anyway, but it is not executed when condition is not satisfied?

@kr4ut
Copy link
Contributor Author

kr4ut commented May 2, 2020

@hatifnatt Sorry for the late reference but it's zabbix_websrv != apache like documented here https://github.com/dj-wasabi/ansible-zabbix-web#dependencies

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants