add static inventory generation

This commit is contained in:
2022-09-12 11:22:35 -04:00
parent fe8064784e
commit 8cc63c3ad8
5 changed files with 1002039 additions and 1 deletions

View File

@ -0,0 +1,15 @@
---
- name: Read in CSV contents
read_csv :
path : "{{ playbook_dir }}/files/{{ __csv_file }}"
register : r_csv_inventory
delegate_to : localhost
- name: Write inventory from CSV data
template:
src : templates/csv_static_inventory.j2
dest : "{{ playbook_dir }}/files/csv_static_inventory.ini"
...