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:
parent
aa101fa52e
commit
cadc107384
@ -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
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user