From 6bed78b9d118526b28e276cf672fd02d6bbe152b Mon Sep 17 00:00:00 2001 From: Vincent Mazenod <vmazenod@gmail.com> Date: Thu, 10 Jan 2019 17:22:05 +0100 Subject: [PATCH] ansible --- content/slides/cri/md/ansible.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/slides/cri/md/ansible.md b/content/slides/cri/md/ansible.md index d130418..092643a 100644 --- a/content/slides/cri/md/ansible.md +++ b/content/slides/cri/md/ansible.md @@ -424,6 +424,8 @@ ignore_errors: True [<i class="fa fa-book" aria-hidden="true"></i> when](https://docs.ansible.com/ansible/latest/user_guide/playbooks_conditionals.html) + * If a task fails or is skipped, **the variable still is registered with a failure or skipped status** + [<i class="fa fa-book" aria-hidden="true"></i> conditions](https://docs.ansible.com/ansible/latest/user_guide/playbooks_tests.html) ```yaml @@ -431,7 +433,6 @@ ignore_errors: True when: ansible_facts['os_family'] == "RedHat" and ansible_facts['lsb']['major_release']|int >= 6 ``` - ## [<i class="fa fa-book" aria-hidden="true"></i> set_fact](https://docs.ansible.com/ansible/latest/modules/set_fact_module.html) & pre_task ```yaml -- GitLab