Solved.

Solution:
  - ios_config:
      lines:
        - interface Ethernet0/1.{{ vlan_id }}
        - encapsulation dot1q {{ vlan_id }}
        - ip address {{ wan_ip }}
        - no shutdown
      save_when: "{{ do_write }}"
    when: CONFIG_STATE == "present"


Thanks to me :D

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1373adbc-f165-4b35-9359-8ed78640cc5d%40googlegroups.com.

Reply via email to