Closed scottnonnenberg closed 5 years ago
As you can see here, the monit dependency should only load when it is defined and set yes.
I believe your playbook is wrongly formatted. Can you try the following?
---
- hosts: load
sudo: yes
vars:
nginx_install_method: "source"
nginx_source_version: "1.7.2"
nginx_source_modules_included:
http_ssl_module: "--with-http_ssl_module"
monit_protection: no
roles:
- Ansibles.nginx
Tried a bunch of stuff, including that. Didn't work - always needed Ansibles.monit, and always installed the basic monit stuff even if the nginx-specific monit stuff wasn't installed. No problem, though - I'm installing nginx via alternate means now.
BTW, I was using the very latest version of Ansible, straight from the github repo.
@scottnonnenberg is this still an issue?
I'm installing nginx from nginx.org's apt repo now - haven't used this module since I posted the issue...
I tried to opt out of monit, but it didn't work. Without the
Ansibles.monit
galaxy role installed, I get this:With it installed I get default monit configuration:
But no nginx-specific monit configuration, as expected:
This was my playbook: