Change ansible_fqdn to inventory_hostname. This fixes some few hosts that have incorrect reverse dns
and shouldn't break any others since we always use fully qualified in our inventory.
This commit is contained in:
parent
bc159045c8
commit
a32f8b9e4a
19 changed files with 31 additions and 33 deletions
|
@ -1,3 +1,3 @@
|
|||
<Plugin exec>
|
||||
Exec "nobody" "/usr/local/bin/collectd-postgres.sh" "-h" "{{ ansible_fqdn }}" "-p" "10"
|
||||
Exec "nobody" "/usr/local/bin/collectd-postgres.sh" "-h" "{{ inventory_hostname }}" "-p" "10"
|
||||
</Plugin>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue