Rework ignore_errors to report no reds

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
This commit is contained in:
Bogdan Dobrelya
2016-12-27 12:38:54 +01:00
parent be8e5e1fdc
commit 79996b557b
12 changed files with 16 additions and 16 deletions

View File

@@ -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

View File

@@ -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