summaryrefslogtreecommitdiffstats
path: root/ansible_collections/cisco/intersight/playbooks/vlans_to_file.yml
blob: a4da5323a4e75e39b7e0590039b760fd68a21eca (plain)
1
2
3
4
5
6
7
8
---
# Write VLANs to file
- lineinfile:
    path: "{{ filename }}"
    line: "{{ item.EthNetworkPolicy.Name }},{{ item.IsNative }},{{ item.Name }},{{ item.VlanId  }}"
  loop: "{{ outer_item.api_response }}"
  loop_control:
    label: "{{ item.EthNetworkPolicy.Name }}"