debug module needs tag to operate

9 views
Skip to first unread message

Jens Debergh

unread,
Jul 2, 2015, 9:04:54 AM7/2/15
to ansible...@googlegroups.com
When trying to debug a particular play I'm using the --tags flag to narrow down on my complete playbook.
I was using the debug module to output some set variables but couldn't wrap my head around the fact that the debug module wasn't firing.
A moment later I realised I hadn't included a tag reference so it didn't get hit when using the play.

Behaviour like this for debugging purposes is strange, shouldn't the debug be evaluated even if I don't supply a tag to reference?

Am I debugging plays in the wrong manner, which completely obsoletes the statement above? 

Brian Coca

unread,
Jul 3, 2015, 11:25:06 PM7/3/15
to ansible...@googlegroups.com
debug is really an 'echo' module (originally it only ran in verbose
mode), but it works like any other task, in current stable and devel
you can add the 'always' tag which makes tasks always run even when
not tagged with the specific tags you target.


--
Brian Coca
Reply all
Reply to author
Forward
0 new messages