using include

13 views
Skip to first unread message

Laks

unread,
Nov 3, 2017, 4:35:00 PM11/3/17
to Ansible Project
Using include option I called another playbook based on the when condition.
when executed, i see called playbook executing but skipping the tasks from it.

Please help.

Thanks,
Laks

Laks

unread,
Nov 3, 2017, 4:35:27 PM11/3/17
to Ansible Project
BTW, 

i am using Ansible 2.2 version.

Kai Stian Olstad

unread,
Nov 3, 2017, 5:35:13 PM11/3/17
to ansible...@googlegroups.com
On 03. nov. 2017 21:35, Laks wrote:
> Using include option I called another playbook based on the when condition.
> when executed, i see called playbook executing but skipping the tasks from
> it.
That is just how when works.
when is added to each task in the included file and each tasks when is evaluated to see if the task should be executed.

--
Kai Stian Olstad
Reply all
Reply to author
Forward
0 new messages