Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'postgresql_packages' is undefined with Ansible 2.2 #7

Closed
geerlingguy opened this issue Nov 2, 2016 · 1 comment
Closed

'postgresql_packages' is undefined with Ansible 2.2 #7

geerlingguy opened this issue Nov 2, 2016 · 1 comment

Comments

@geerlingguy
Copy link
Owner

Ansible 2.1.2+ (including 2.2) seems to be statically including role includes (see ansible/ansible#17687), which means some variable-defining tasks aren't run properly, but then later tasks which are skipped in a role that's ignored are still being run, but with undefined variables, which introduce an error like:

TASK [geerlingguy.firewall : Ensure the firewall is enabled and will start on boot.] ***
fatal: [drupalvm]: FAILED! => {"changed": false, "failed": true, "msg": "Could not find the requested service \"'firewall'\": "}

RUNNING HANDLER [geerlingguy.firewall : restart firewall] **********************

PLAY RECAP *********************************************************************
drupalvm                   : ok=10   changed=6    unreachable=0    failed=1
@geerlingguy
Copy link
Owner Author

I have a fix for this, using static: no for some of the role includes. See: ansible/ansible#17687

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

No branches or pull requests

1 participant