Ensure that we create Octavia resources only once
Make use of the new _octavia_is_first_play_host while creating resources to ensure that we try to create them only once. Change-Id: I0c5d017bd865b09d94139740ef50b712b8753760
This commit is contained in:
parent
1be636c5ab
commit
e33331ae0b
@ -169,17 +169,20 @@
|
||||
when:
|
||||
- octavia_neutron_management_network_uuid is not defined
|
||||
- octavia_neutron_management_network_name is defined
|
||||
- _octavia_is_first_play_host
|
||||
tags:
|
||||
- octavia-install
|
||||
- octavia-config
|
||||
|
||||
- import_tasks: octavia_security_group.yml
|
||||
run_once: true
|
||||
when:
|
||||
- _octavia_is_first_play_host
|
||||
tags:
|
||||
- octavia-install
|
||||
|
||||
- import_tasks: octavia_flavor_create.yml
|
||||
when:
|
||||
- _octavia_is_first_play_host
|
||||
- octavia_nova_flavor_uuid is not defined
|
||||
tags:
|
||||
- octavia-install
|
||||
@ -202,7 +205,8 @@
|
||||
- octavia-config
|
||||
|
||||
- import_tasks: octavia_amp_image.yml
|
||||
run_once: true
|
||||
when:
|
||||
- _octavia_is_first_play_host
|
||||
tags:
|
||||
- octavia-config
|
||||
|
||||
|
@ -24,7 +24,6 @@
|
||||
ansible_python_interpreter: "{{ octavia_service_setup_host_python_interpreter }}"
|
||||
block:
|
||||
- name: Create Octavia Flavor
|
||||
run_once: true
|
||||
openstack.cloud.compute_flavor:
|
||||
auth:
|
||||
auth_url: "{{ keystone_service_adminurl }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user