diff options
Diffstat (limited to 'deploy/adapters/ansible/roles/keystone/tasks')
-rw-r--r-- | deploy/adapters/ansible/roles/keystone/tasks/keystone_config.yml | 2 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/keystone/tasks/main.yml | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/deploy/adapters/ansible/roles/keystone/tasks/keystone_config.yml b/deploy/adapters/ansible/roles/keystone/tasks/keystone_config.yml index 4ba3ad03..78ac970b 100644 --- a/deploy/adapters/ansible/roles/keystone/tasks/keystone_config.yml +++ b/deploy/adapters/ansible/roles/keystone/tasks/keystone_config.yml @@ -2,6 +2,7 @@ - name: keystone-manage db-sync shell: su -s /bin/sh -c "keystone-manage db_sync" register: result + run_once: True until: result.rc == 0 retries: 5 delay: 3 @@ -10,6 +11,7 @@ template: src=keystone_init dest=/opt/keystone_init mode=0744 - name: run keystone_init + run_once: True shell: /opt/keystone_init && touch keystone_init_complete || keystone_init_failed args: creates: keystone_init_complete diff --git a/deploy/adapters/ansible/roles/keystone/tasks/main.yml b/deploy/adapters/ansible/roles/keystone/tasks/main.yml index 2f36e911..3ff37342 100644 --- a/deploy/adapters/ansible/roles/keystone/tasks/main.yml +++ b/deploy/adapters/ansible/roles/keystone/tasks/main.yml @@ -6,7 +6,6 @@ - keystone - include: keystone_config.yml - when: HA_CLUSTER is not defined or HA_CLUSTER[inventory_hostname] == '' tags: - config - keystone_config |