Skip to content

Commit 4b48ded

Browse files
author
Julien Girardin
committed
Display futur changes as orange (as "changes")
1 parent 06f4208 commit 4b48ded

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

playbooks/01_site.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,18 @@
3030
roles:
3131
- role: find_ip
3232
- role: preflight_check_nodes
33-
- role: process_reasons
3433
tasks:
3534
- include_role:
3635
name: hooks_call
3736
vars:
3837
kubeadm_hook_list: ['post_preflight_nodes']
3938

39+
- hosts: '{{ kube_cp_group|default("kube_control_plane") }}:{{ kube_worker_group|default("kube_workers") }}'
40+
any_errors_fatal: '{{ any_errors_fatal|default(true) }}'
41+
gather_facts: false
42+
roles:
43+
- role: process_reasons
44+
4045
- hosts: '{{ kube_cp_group|default("kube_control_plane") }}'
4146
any_errors_fatal: '{{ any_errors_fatal|default(true) }}'
4247
gather_facts: false

roles/process_reasons/tasks/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
- debug:
33
var: _failure_reasons
4+
changed_when: _failure_reasons|length > 0
45

56
- name: 'Fail if failure reasons found'
67
fail:
@@ -10,10 +11,12 @@
1011
- name: 'Display config upgrade reasons'
1112
debug:
1213
var: _config_upgrade_reasons
14+
changed_when: _config_upgrade_reasons|length > 0
1315

1416
- name: 'Display upgrade reasons'
1517
debug:
1618
var: _upgrade_reasons
19+
changed_when: _upgrade_reasons|length > 0
1720

1821
- name: 'Pause to review diff and upgrade reasons'
1922
pause:

0 commit comments

Comments
 (0)