fucking hell
This commit is contained in:
@@ -123,13 +123,13 @@
|
||||
label: "{{ item.key }}"
|
||||
when: linode_inventory_data._meta.hostvars | length > 0
|
||||
|
||||
- name: Create static inventory file (optional)
|
||||
- name: Create JSON inventory file for AWX
|
||||
ansible.builtin.template:
|
||||
src: inventory.ini.j2
|
||||
dest: "{{ linode_inventory_output_dir }}/linode_static_inventory.ini"
|
||||
src: linode_hosts.json.j2
|
||||
dest: "{{ linode_inventory_output_dir }}/linode_hosts.json"
|
||||
mode: '0644'
|
||||
when: inventory_format == "ini"
|
||||
delegate_to: localhost
|
||||
when: linode_inventory_data is defined
|
||||
|
||||
- name: Clean up temporary script
|
||||
ansible.builtin.file:
|
||||
|
Reference in New Issue
Block a user