From 33e5ca3eb6ebe218412a7ee51da6e463e6e15551 Mon Sep 17 00:00:00 2001 From: Logan V Date: Mon, 20 Mar 2017 11:01:46 -0500 Subject: [PATCH] Fix double when statements Fixing a bug that indroduced duplicate when statements in Ief28c6bed8daa38120207de61aba327c9fe49d3a. Change-Id: I189325d2d8de17680a08ab1fefb2fe6628f58612 --- tasks/keystone_pre_install.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tasks/keystone_pre_install.yml b/tasks/keystone_pre_install.yml index c4d55bfd..0e3d6362 100644 --- a/tasks/keystone_pre_install.yml +++ b/tasks/keystone_pre_install.yml @@ -42,9 +42,10 @@ - - "{{ keystone_system_user_home }}/.ssh/authorized_keys" - "{{ keystone_system_user_home }}/.ssh/id_rsa" - "{{ keystone_system_user_home }}/.ssh/id_rsa.pub" - when: keystone_recreate_keys | bool + when: + - keystone_recreate_keys | bool + - "{{ inventory_hostname == ansible_play_hosts[0] }}" delegate_to: "{{ item[0] }}" - when: "{{ inventory_hostname == ansible_play_hosts[0] }}" - name: Create the keystone system user user: