mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 09:39:12 +03:00
Rework ignore_errors to report no reds
Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
- name: Bootstrap | Check if bootstrap is needed
|
||||
raw: stat /opt/bin/.bootstrapped
|
||||
register: need_bootstrap
|
||||
ignore_errors: True
|
||||
failed_when: false
|
||||
tags: facts
|
||||
|
||||
- name: Bootstrap | Run bootstrap.sh
|
||||
@@ -16,7 +16,7 @@
|
||||
- name: Bootstrap | Check if we need to install pip
|
||||
shell: "{{ansible_python_interpreter}} -m pip --version"
|
||||
register: need_pip
|
||||
ignore_errors: True
|
||||
failed_when: false
|
||||
changed_when: false
|
||||
when: (need_bootstrap | failed)
|
||||
tags: facts
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
- name: Bootstrap | Check if bootstrap is needed
|
||||
raw: which python
|
||||
register: need_bootstrap
|
||||
ignore_errors: True
|
||||
failed_when: false
|
||||
tags: facts
|
||||
|
||||
- name: Bootstrap | Install python 2.x
|
||||
|
||||
Reference in New Issue
Block a user