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
This commit is contained in:
Emilien Macchi 2019-11-05 14:12:30 +01:00
parent 6e2fc6d52f
commit 427e54164d
1 changed files with 7 additions and 0 deletions

View File

@ -427,6 +427,7 @@ outputs:
delegate_to: localhost
become: false
run_once: true
when: not ansible_check_mode|bool
block:
- name: Get current user
command: whoami
@ -910,6 +911,7 @@ outputs:
delegate_to: localhost
become: false
run_once: true
when: not ansible_check_mode|bool
block:
- name: Get current user
command: whoami
@ -1014,6 +1016,7 @@ outputs:
delegate_to: localhost
become: false
run_once: true
when: not ansible_check_mode|bool
block:
- name: Get current user
command: whoami
@ -1121,6 +1124,7 @@ outputs:
delegate_to: localhost
become: false
run_once: true
when: not ansible_check_mode|bool
block:
- name: Get current user
command: whoami
@ -1197,6 +1201,7 @@ outputs:
delegate_to: localhost
become: false
run_once: true
when: not ansible_check_mode|bool
block:
- name: Get current user
command: whoami
@ -1329,6 +1334,7 @@ outputs:
delegate_to: localhost
become: false
run_once: true
when: not ansible_check_mode|bool
block:
- name: Get current user
command: whoami
@ -1459,6 +1465,7 @@ outputs:
delegate_to: localhost
become: false
run_once: true
when: not ansible_check_mode|bool
block:
- name: Get current user
command: whoami