>
>
> Alright!
Thanks for your help so far, now it's working without errors.
Ignore previous messages and lets talk about the current status.

The result I get is:

[image: Ansible add vlans errors.PNG]


The result I'm expecting to see is that the ansible will run on each line 
inside POC_ENV.yml the task show_vlan.
The task show_vlan redirects to the "roles" folder where there is a 
show_vlan.yml file with the commands I want to execute on the remote host 
(from POC_ENV per line)
I want to store the result of the show_vlan.yml in a variable and print it.


This is the show_vlan.yml content:
    - name: Show VLAN
      ios_command:
        commands: show vlan brief
      register: show_vlan

    - debug: var=show_vlan.stdout_lines

What am I missing next?















 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/98275919-5960-4ef1-a81f-1fd55cfe3fed%40googlegroups.com.

Reply via email to