Closed rthorn-nr closed 1 year ago
Enables overriding the terminal environment using the environment field at the play or role level.
environment
Uses environment variables:
- name: Install New Relic infrastructure & logs hosts: all roles: - role: newrelic.newrelic_install
Uses play-level environment "FOO":
- name: Install New Relic infrastructure & logs hosts: all roles: - role: newrelic.newrelic_install environment: NEW_RELIC_ACCOUNT_ID: FOO NEW_RELIC_API_KEY: FOO NEW_RELIC_REGION: FOO
Uses role-level environment "BAR":
- name: Install New Relic infrastructure & logs hosts: all roles: - role: newrelic.newrelic_install environment: NEW_RELIC_ACCOUNT_ID: BAR NEW_RELIC_API_KEY: BAR NEW_RELIC_REGION: BAR environment: NEW_RELIC_ACCOUNT_ID: FOO NEW_RELIC_API_KEY: FOO NEW_RELIC_REGION: FOO
Uses FQCN -- will change over if we merge https://github.com/newrelic/ansible-install/pull/13
Closing due to env var changes from https://github.com/newrelic/ansible-install/pull/17
Enables overriding the terminal environment using the
environment
field at the play or role level.Behavior
Uses environment variables:
Uses play-level
environment
"FOO":Uses role-level
environment
"BAR":