Remove ignore error and unnecessary when

ignore error was triggered at flavor creation when octavia_all have
mutliple hosts, solved with run only on first node.

Change-Id: I92fc665ad6bd2bc4359b81bbccf1cba08e2d7703
(cherry picked from commit a731313a29)
This commit is contained in:
Kourosh Vivan 2017-10-30 16:49:05 +01:00 committed by German Eichberger
parent d297d43fe8
commit 5fd1fbae70
2 changed files with 1 additions and 7 deletions

View File

@ -68,6 +68,7 @@
- include: octavia_flavor_create.yml
when:
- inventory_hostname == groups['octavia_all'][0]
- octavia_nova_flavor_uuid is not defined
tags:
- octavia-install

View File

@ -29,10 +29,6 @@
vcpus: "{{ octavia_amp_vcpu }}"
disk: "{{ octavia_amp_disk }}"
is_public: False
ignore_errors: yes # that module is buggy?
when:
- octavia_nova_flavor_uuid is not defined
- name: Gather Octavia Flavor Id
os_flavor_facts:
@ -45,9 +41,6 @@
project_domain_name: "{{ octavia_service_project_domain_id }}"
endpoint_type: "{{ octavia_ansible_endpoint_type }}"
name: "{{ octavia_amp_flavor_name}}"
ignore_errors: yes
when:
- octavia_nova_flavor_uuid is not defined
- name: Set Octavia Flavor UUID fact 1
set_fact: