Fix double when statements

Fixing a bug that indroduced duplicate when statements in
Ief28c6bed8daa38120207de61aba327c9fe49d3a.

Change-Id: I189325d2d8de17680a08ab1fefb2fe6628f58612
This commit is contained in:
Logan V 2017-03-20 11:01:46 -05:00
parent 1b74c307e9
commit 33e5ca3eb6
1 changed files with 3 additions and 2 deletions

View File

@ -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: