Add when to skip os_client_config in noauth mode

When noauth_mode=true, the os_client_config Ansible module will still execute
and then fails due to a missing clouds.yaml file (which is only generated
when keystone is enabled and installed).

This change will skip over the os_client_config module when noauth_mode
is set to true.

Change-Id: Iff3f33fe5e1f7d952c982fa377af0ff415ec2831
Closes-Bug: #1693309
Signed-off-by: Leif Madsen <lmadsen@redhat.com>
This commit is contained in:
Leif Madsen 2017-05-24 13:27:24 -04:00
parent aa101fa52e
commit cadc107384
No known key found for this signature in database
GPG Key ID: 409E6FD5A5D30321
6 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,7 @@
- name: "Execute os_client_config to collect facts"
os_client_config:
no_log: yes
when: noauth_mode is defined and noauth_mode | bool == false
# NOTE(TheJulia): The first record returned by os_client_config
# is utilized as the default. A user can still define the parameters

View File

@ -29,6 +29,7 @@
- name: "Execute os_client_config to collect facts"
os_client_config:
no_log: yes
when: noauth_mode is defined and noauth_mode | bool == false
# NOTE(TheJulia): The first record returned by os_client_config
# is utilized as the default. A user can still define the parameters

View File

@ -31,6 +31,7 @@
auth_type: "{{ openstack.clouds[0].auth_type }}"
when: auth is undefined
no_log: yes
when: noauth_mode is defined and noauth_mode | bool == false
- name: "Unprovision node"
os_ironic_node:

View File

@ -21,6 +21,7 @@
- name: "Execute os_client_config to collect facts"
os_client_config:
no_log: yes
when: noauth_mode is defined and noauth_mode | bool == false
# NOTE(TheJulia): The first record returned by os_client_config
# is utilized as the default. A user can still define the parameters

View File

@ -24,6 +24,7 @@
- name: "Execute os_client_config to collect facts"
os_client_config:
no_log: yes
when: noauth_mode is defined and noauth_mode | bool == false
# NOTE(TheJulia): The first record returned by os_client_config
# is utilized as the default. A user can still define the parameters

View File

@ -24,6 +24,7 @@
- name: "Execute os_client_config to collect facts"
os_client_config:
no_log: yes
when: noauth_mode is defined and noauth_mode | bool == false
# NOTE(TheJulia): The first record returned by os_client_config
# is utilized as the default. A user can still define the parameters