Register runs on skipped task

7 views
Skip to first unread message

Balazs Varga

unread,
Dec 4, 2019, 10:31:40 AM12/4/19
to Ansible Project
Hello Team,

Is there any chance to disable the register command when the task was skipped? 

Thanks
Balazs

Matt Martz

unread,
Dec 4, 2019, 10:37:52 AM12/4/19
to ansible...@googlegroups.com
No.  It is performed so that later you can have a when statement or similar that checks whether the result was skipped or not.

You should instead use different variable names for your register statements.

--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/17f10d35-f4ed-44c6-9ff2-a45d2905b52f%40googlegroups.com.


--
Matt Martz
@sivel
sivel.net
Reply all
Reply to author
Forward
0 new messages