Ansible 2.9 Playbook

14 views
Skip to first unread message

Glenn Gabrielle

unread,
Sep 13, 2021, 12:06:10 PM9/13/21
to Ansible Development
     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
      

rajtheco...@gmail.com

unread,
Sep 22, 2021, 6:29:16 AM9/22/21
to Ansible Development
Please post your error message
Reply all
Reply to author
Forward
0 new messages