Aha - yes, had missed that in the output. Have been trying to work out why it differed from the example use of 'when' to check for empty stdout in the documentation, but I now see in the module docs for ios_command, that since it takes a list of commands as input, it also returns a list of stdout values rather than a single value. That makes sense and explains the difference.
Many thanks for pointing me the right way. On Monday, 22 August 2016 14:48:08 UTC+1, Kai Stian Olstad wrote: > > > > It's not empty, it does contain a list. > So if you do this I think it should work > when: syslog.stdout[0] != "" > > -- > Kai Stian Olstad > -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7f4354fc-df5f-4992-b480-595b05a25f43%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
