On Fri, 18 Dec 2020 13:01:52 -0800 (PST) "[email protected]" <[email protected]> wrote:
> - hosts:all
> become:yes
> when: <condition>
> tasks:
> <task1>
Test the condition in the first task. For example
- hosts: all
tasks:
- meta: end_play
when: not condition|default('false')|bool
- debug:
msg: Start play
--
Vladimir Botka
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/20201219003247.1b57c75a%40gmail.com.
pgpub7EBkMjN7.pgp
Description: OpenPGP digital signature
