On 03. mars 2017 10:32, [email protected] wrote:
    - debug:
        msg: "test: {{ test.stdout }}"

    - name: interface e01
      ignore_errors: yes
      eos_config:
        host: arista
        username: admin
        password: ccc
        authorize: yes
        lines:
          - switchport access vlan 200
          - no shutdown
        parents:
          - interface Ethernet1
      when: '"200" in test'

You need to use "test.stdout" as you did in the debug task.

--
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/b26aa38a-c1b3-465d-2b17-117a82100e97%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to