From 4d057b32e9910c09aae61a8fb151e5b9e9c820f7 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 6 Jul 2015 20:39:09 +0000 Subject: [PATCH] See if adding this here fixes an issue with stg. Basically if /etc/hosts has proxy01.phx2.fedoraproject.org in it, ansible picks that up and gets the host file for that instead of the one for proxy01.stg.phx2.fedoraproject.org and it flips back and forth on ansible runs. --- roles/hosts/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/hosts/tasks/main.yml b/roles/hosts/tasks/main.yml index db7eb745d1..faeccb962c 100644 --- a/roles/hosts/tasks/main.yml +++ b/roles/hosts/tasks/main.yml @@ -13,6 +13,7 @@ action: copy src={{ item }} dest=/etc/hosts with_first_found: - files: + - "{{ inventory_hostname }}-hosts" - "{{ ansible_fqdn }}-hosts" - "{{ ansible_hostname }}-hosts" - "{{ ansible_domain }}-hosts"