Thanks, tried that but it still skips the conditional check.
On Friday, March 10, 2017 at 3:02:49 PM UTC, Kai Stian Olstad wrote:
>
> On 09. mars 2017 20:26, Roger Perkin wrote:
> > The play works fine up until the last point.
> >
> > - block:
> > - name: write config to interface
> > with_indexed_items: " {{ my_list }} "
> > ios_config:
> > lines: description CHANGED
> > parents: GigabitEthernet{{ item.1 }}
> > provider: "{{ cli }}"
> > match: none
> > * when: "' description ANSIBLE' in output.results[{{ item.0
> > }}].stdout_lines"*
>
> Don't use curly brackets in when:, they are implied.
> If you do you can get all kind of strange behavior.
>
> when: "' description ANSIBLE' in output.results[item.0].stdout_lines"
>
> --
> 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/5f50e77a-947c-4cae-ae40-39f44ca15316%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.