|
@@ -43,6 +43,7 @@
|
|
|
|
|
|
- name: Temp result
|
|
- name: Temp result
|
|
shell: cat /root/omnia/control_plane/roles/collect_device_info/files/mgmt_provisioned_hosts.yml |sort|uniq
|
|
shell: cat /root/omnia/control_plane/roles/collect_device_info/files/mgmt_provisioned_hosts.yml |sort|uniq
|
|
|
|
+ changed_when: false
|
|
register: inventory
|
|
register: inventory
|
|
|
|
|
|
- name: Final Inventory
|
|
- name: Final Inventory
|
|
@@ -51,3 +52,11 @@
|
|
- name: New line at end of file
|
|
- name: New line at end of file
|
|
shell: echo "">> omnia/control_plane/roles/collect_device_info/files/mgmt_provisioned_hosts.yml
|
|
shell: echo "">> omnia/control_plane/roles/collect_device_info/files/mgmt_provisioned_hosts.yml
|
|
changed_when: false
|
|
changed_when: false
|
|
|
|
+
|
|
|
|
+ - name: Delete files
|
|
|
|
+ file:
|
|
|
|
+ path: "{{ item }}"
|
|
|
|
+ state: absent
|
|
|
|
+ with_items:
|
|
|
|
+ - "/root/temp.txt"
|
|
|
|
+ - "/root/dynamic_hosts.yml"
|