diff options
| author | Kevin Fenzi <kevin@scrye.com> | 2016-05-11 15:08:50 +0000 |
|---|---|---|
| committer | Kevin Fenzi <kevin@scrye.com> | 2016-05-11 15:08:50 +0000 |
| commit | a32f8b9e4a061ec1422f9714ee4479dda1b7e186 (patch) | |
| tree | 1662643f8dfaea51473e9597384b46ca4b034b4b /roles/rsyncd | |
| parent | bc159045c8fd2ef77a6458193dc4311eb1080c72 (diff) | |
| download | ansible-a32f8b9e4a061ec1422f9714ee4479dda1b7e186.tar.gz ansible-a32f8b9e4a061ec1422f9714ee4479dda1b7e186.tar.xz ansible-a32f8b9e4a061ec1422f9714ee4479dda1b7e186.zip | |
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.
Diffstat (limited to 'roles/rsyncd')
| -rw-r--r-- | roles/rsyncd/tasks/main.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/rsyncd/tasks/main.yml b/roles/rsyncd/tasks/main.yml index 7d1a83b5b..4c6fd4064 100644 --- a/roles/rsyncd/tasks/main.yml +++ b/roles/rsyncd/tasks/main.yml @@ -27,7 +27,7 @@ copy: src={{ item }} dest=/etc/rsyncd.conf mode=644 with_first_found: - "{{ rsyncd_conf }}" - - rsyncd.conf.{{ ansible_fqdn }} + - rsyncd.conf.{{ inventory_hostname }} - rsyncd.conf.{{ host_group }} - rsyncd.conf.{{ rsync_group }} - rsyncd.conf.default @@ -40,7 +40,7 @@ copy: src={{ item }} dest=/etc/xinetd.d/rsync mode=644 with_first_found: - "{{ rsync }}" - - rsync.{{ ansible_fqdn }} + - rsync.{{ inventory_hostname }} - rsync.{{ host_group }} - rsync.{{ rsync_group }} - rsync.default |
