forked from evolix/ansible-roles
Jérémy Lecour
2ed77c60f0
replace « x | changed » by « x is changed » add explicit « bool » filter use « length » filter instead of string comparison
14 lines
343 B
YAML
14 lines
343 B
YAML
---
|
|
|
|
- name: Install system monitor daemon
|
|
apt:
|
|
name: newrelic-sysmond
|
|
|
|
- name: Set license key for newrelic-sysmond
|
|
replace:
|
|
dest: /etc/newrelic/nrsysmond.cfg
|
|
regexp: "license_key=REPLACE_WITH_REAL_KEY"
|
|
replace: "license_key={{ newrelic_license }}"
|
|
when: newrelic_license | length > 0
|
|
notify: restart newrelic-sysmond
|