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

@ -16,7 +16,7 @@
copy: src={{ item }} dest=/etc/my.cnf owner=root group=root mode=0644
with_first_found:
- "{{ mariadb_config }}"
- my.cnf.{{ ansible_fqdn }}
- my.cnf.{{ inventory_hostname }}
- my.cnf.{{ host_group }}
- my.cnf.{{ dist_tag }}
- my.cnf.{{ ansible_distribution }}