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:
Dmitriy Rabotyagov 2020-12-03 20:56:42 +02:00
parent 1be636c5ab
commit e33331ae0b
2 changed files with 6 additions and 3 deletions

View File

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

View File

@ -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 }}"