ansible,

Ansible Dictionary Sample

Follow · 1 min read
Share this

Sample Playbook to Handle Ansible dictionary

---
- name: Test play for dictionary
  hosts: all
  vars:
    interfaces:
      ansible-node-2:
        int1:
          intname: ens192
          intip: 10.154.158.146
          intmask: 255.255.255.128
          intgw: 10.154.158.1
  tasks:
    - name: Looping
      debug:
        msg: Hello 
      #with_dict:
      #  - ''

    - name: Looping 2
      debug:
        msg: "Int1 : "

Latest Stories

Featured