Running Ansible 2.9 but having issues getting playbook to run, here is 
an example of the playbook

           -  hosts: switch01
              gather_facts: no
        
       
       # Using merged
       
       # Before state:
       # -------------
       # 
      # interface Ethernet1/1
      #   description testing
      #   mtu 1800
     
      - name: Merge provided configuration with device configuration
        nxos_interfaces:
          config:
            - name: Ethernet1/1
              description: 'Configured by Ansible'
              enabled: True
            - name: Ethernet1/2
              description: 'Configured by Ansible Network'
              enabled: False
          state: merged
      
      # After state:
      # ------------
      # 
      # interface Ethernet1/1
      #    description Configured by Ansible
      #    no shutdown
      #    mtu 1800
      # interface Ethernet2
      #    description Configured by Ansible Network
      #    shutdown
      

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/ae2fd5a7-0d46-4abe-b90d-2a133abd9311n%40googlegroups.com.

Reply via email to