newrelic / ansible-install

Building installation support for our customers are using ansible to manage their infrastructure and services at scale
Apache License 2.0
8 stars 6 forks source link

fix(mysql): use mysql envar #45

Closed amolero-nr closed 1 year ago

amolero-nr commented 1 year ago

This PR is to make sure that the NEW_RELIC_MYSQL_ROOT_PASSWORD environment variable is retrieved from the host's global, non-interactive environment when that same variable is not set in the playbook's environment section.

If the variable is not found in the playbook nor in the remote host's environment or is found in remote host by empty, the user informed with an error.