Ensure that LDAP config is deployed on all keystone hosts

In I66ed21cdcf42d0c2012062c8cf74305fecbec312 the condition meant
for the setup of the domain was mistakenly applied to all tasks
including laying down the template.

This patch moves the conditional which ensures the domain is setup
on the first host to the task in question to ensure that everything
is good and well with the world again.

Change-Id: Icb7c2556306d459534e6791f16c7013d0e9fcaf5
Closes-Bug: #1804827
(cherry picked from commit 3a6a55b8d0)
This commit is contained in:
Jesse Pretorius 2018-11-28 11:43:14 +00:00
parent b8798d89f8
commit bdce0d432f
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,8 @@
endpoint: "{{ keystone_service_adminurl }}"
insecure: "{{ keystone_service_adminuri_insecure }}"
with_dict: "{{ keystone_ldap }}"
run_once: true
when:
- inventory_hostname == ((groups['keystone_all'] | intersect(ansible_play_hosts)) | list)[-1]
- name: Create Keystone LDAP domain configs
template:

View File

@ -132,7 +132,6 @@
- include: keystone_ldap_setup.yml
static: no
when:
- inventory_hostname == ((groups['keystone_all'] | intersect(ansible_play_hosts)) | list)[-1]
- keystone_service_setup | bool
tags:
- keystone-config