[Cleanup] newrelic, don't compare to empty string
This commit is contained in:
parent
97d3d29210
commit
c3caa31bf2
|
@ -6,7 +6,7 @@
|
||||||
question: "newrelic-php5/application-name"
|
question: "newrelic-php5/application-name"
|
||||||
value: "{{ newrelic_appname }}"
|
value: "{{ newrelic_appname }}"
|
||||||
vtype: string
|
vtype: string
|
||||||
when: newrelic_appname != ""
|
when: newrelic_appname
|
||||||
|
|
||||||
- name: Pre-seed package configuration with license
|
- name: Pre-seed package configuration with license
|
||||||
debconf:
|
debconf:
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
question: "newrelic-php5/license-key"
|
question: "newrelic-php5/license-key"
|
||||||
value: "{{ newrelic_license }}"
|
value: "{{ newrelic_license }}"
|
||||||
vtype: "string"
|
vtype: "string"
|
||||||
when: newrelic_license != ""
|
when: newrelic_license
|
||||||
|
|
||||||
- name: list newrelic config files
|
- name: list newrelic config files
|
||||||
shell: "find /etc/php* -type f -name newrelic.ini"
|
shell: "find /etc/php* -type f -name newrelic.ini"
|
||||||
|
|
|
@ -9,5 +9,5 @@
|
||||||
dest: /etc/newrelic/nrsysmond.cfg
|
dest: /etc/newrelic/nrsysmond.cfg
|
||||||
regexp: "license_key=REPLACE_WITH_REAL_KEY"
|
regexp: "license_key=REPLACE_WITH_REAL_KEY"
|
||||||
replace: "license_key={{ newrelic_license }}"
|
replace: "license_key={{ newrelic_license }}"
|
||||||
when: newrelic_license != ""
|
when: newrelic_license
|
||||||
notify: restart newrelic-sysmond
|
notify: restart newrelic-sysmond
|
||||||
|
|
Loading…
Reference in a new issue