Do not run rendering all_nodes data as group_vars in check mode

We don't want to run the "Render all_nodes data as group_vars for overcloud"
tasks in check mode, since it relies on the command "whoami"; which
doesn't execute in check mode.

Change-Id: Ia8df4794fcf8eff9a2d5a8a7e99e0e5ebf1f8e1f
(cherry picked from commit 427e54164d)
This commit is contained in:
Emilien Macchi 2019-11-05 14:12:30 +01:00
parent 9b2608080f
commit 04e2bb933c
1 changed files with 7 additions and 0 deletions

View File

@ -426,6 +426,7 @@ outputs:
delegate_to: localhost
become: false
run_once: true
when: not ansible_check_mode|bool
block:
- name: Get current user
command: whoami
@ -909,6 +910,7 @@ outputs:
delegate_to: localhost
become: false
run_once: true
when: not ansible_check_mode|bool
block:
- name: Get current user
command: whoami
@ -1013,6 +1015,7 @@ outputs:
delegate_to: localhost
become: false
run_once: true
when: not ansible_check_mode|bool
block:
- name: Get current user
command: whoami
@ -1120,6 +1123,7 @@ outputs:
delegate_to: localhost
become: false
run_once: true
when: not ansible_check_mode|bool
block:
- name: Get current user
command: whoami
@ -1196,6 +1200,7 @@ outputs:
delegate_to: localhost
become: false
run_once: true
when: not ansible_check_mode|bool
block:
- name: Get current user
command: whoami
@ -1328,6 +1333,7 @@ outputs:
delegate_to: localhost
become: false
run_once: true
when: not ansible_check_mode|bool
block:
- name: Get current user
command: whoami
@ -1458,6 +1464,7 @@ outputs:
delegate_to: localhost
become: false
run_once: true
when: not ansible_check_mode|bool
block:
- name: Get current user
command: whoami