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/e0142c50-8291-8136-6ac9-df62e6446248%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to