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:
Kevin Fenzi 2016-05-11 15:08:50 +00:00
parent bc159045c8
commit a32f8b9e4a
19 changed files with 31 additions and 33 deletions

View file

@ -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>