Merge "tasks: neutron_db_setup: Only create the DB from the first neutron server"

This commit is contained in:
Zuul 2018-09-28 18:20:09 +00:00 committed by Gerrit Code Review
commit 9d76fc4ed1
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@
state: "present"
delegate_to: "{{ neutron_db_setup_host }}"
no_log: True
when: "inventory_hostname == ((groups[neutron_services['neutron-server']['group']]| intersect(ansible_play_hosts)) | list)[0]"
- name: Grant access to the DB for the service
mysql_user:
@ -38,6 +39,7 @@
- "localhost"
- "%"
no_log: True
when: "inventory_hostname == ((groups[neutron_services['neutron-server']['group']]| intersect(ansible_play_hosts)) | list)[0]"
- name: Perform a DB expand
command: "{{ neutron_bin }}/neutron-db-manage upgrade --expand"