Also, I noticed you are using ios_command to send configuration statements. Please switch to using ios_config. In 2.2, ios_command will no longer allow you to send configuration commands
On Tue, Aug 23, 2016 at 5:49 AM, 'Steve Kersley' via Ansible Project < [email protected]> wrote: > 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 > <https://groups.google.com/d/msgid/ansible-project/7f4354fc-df5f-4992-b480-595b05a25f43%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CAEkdrMgjKjEMRgb%3DJ1fnG8PPHiXTsM2Fs%3DSW3vrU8U8CbeF-_A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
