From 34edfbec80e5bcb669335fb3ea3ab143c36cc4d9 Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Mon, 27 Mar 2017 19:40:37 +0100 Subject: [PATCH] Use workaround for Ansible issue with dynamic delegate_to --- ansible/kolla-bifrost-hostvars.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ansible/kolla-bifrost-hostvars.yml b/ansible/kolla-bifrost-hostvars.yml index 1b0a44c31..3e970d797 100644 --- a/ansible/kolla-bifrost-hostvars.yml +++ b/ansible/kolla-bifrost-hostvars.yml @@ -42,5 +42,7 @@ # Bifrost host variables for {{ inventory_hostname }} {{ bifrost_hostvars | to_nice_yaml }} dest: "/etc/kolla/bifrost/inventory/host_vars/{{ inventory_hostname }}" - delegate_to: "{{ seed_host }}" + delegate_to: "{{ item }}" + with_items: + - "{{ hostvars[groups['seed'][0]].ansible_host }}" become: True