weareinteractive / ansible-newrelic

Ansible role which installs and configures New Relic Server Monitoring Daemon
MIT License
43 stars 28 forks source link

Ansible 2.2 causes 'newrelic_license_key has not been defined' error #13

Closed geerlingguy closed 7 years ago

geerlingguy commented 7 years ago
TASK [franklinkim.newrelic : Checking for key] *********************************
fatal: [drupalvm]: FAILED! => {"changed": false, "failed": true, "msg": "newrelic_license_key has not been defined"}

It looks like this happens after updating to Ansible 2.2, because of this change: https://github.com/ansible/ansible/issues/15342

geerlingguy commented 7 years ago

Actually, this isn't the same problem as above (it's not related to includes), but rather how the when conditional is applied using an undefined variable.

geerlingguy commented 7 years ago

Eh... I guess a license key is required. Don't know what I was thinking here :D