Fix endpoint creational in ironic

The openstack command, when an endpoint is checked directly
returns a code of 1 if no endpoint is found. This by default
for ansible is a failure, and causes the task to fail, however
we check for the return code later. We should ignore the errors
upon these information gathering tasks being executed.

Change-Id: I4cb7eb2878f1495a17821b895765093205f43c98
This commit is contained in:
Julia Kreger 2017-04-01 12:20:27 +00:00
parent 6bdea867b0
commit 03f26d1366

View File

@ -118,6 +118,7 @@
--region "{{ keystone.bootstrap.region_name | default('RegionOne') }}"
no_log: true
register: test_ironic_admin_endpoint
ignore_errors: true
- name: "Check ironic public endpoint exists"
command: |
@ -131,6 +132,7 @@
--region "{{ keystone.bootstrap.region_name | default('RegionOne') }}"
no_log: true
register: test_ironic_public_endpoint
ignore_errors: true
- name: "Check ironic internal endpoint exists"
command: |
@ -144,6 +146,7 @@
--region "{{ keystone.bootstrap.region_name | default('RegionOne') }}"
no_log: true
register: test_ironic_internal_endpoint
ignore_errors: true
- name: "Create ironic admin endpoint"
command: |