generated from ansible/ansible_template
adjust the inventory variable
This commit is contained in:
parent
a3ee44b511
commit
78645a4d77
|
@ -11,7 +11,7 @@
|
||||||
- name: "Get the Proxmox Ansible inventory"
|
- name: "Get the Proxmox Ansible inventory"
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
url: "https://github.com/xezpeleta/Ansible-Proxmox-inventory/raw/master/proxmox.py"
|
url: "https://github.com/xezpeleta/Ansible-Proxmox-inventory/raw/master/proxmox.py"
|
||||||
dest: "/etc/ansible/proxmox.py"
|
dest: "/etc/ansible/{{ ansible_inventory }}.py"
|
||||||
mode: "0777"
|
mode: "0777"
|
||||||
|
|
||||||
- name: "Copy the ansible config"
|
- name: "Copy the ansible config"
|
||||||
|
@ -22,6 +22,6 @@
|
||||||
|
|
||||||
- name: "Copy the inventory config"
|
- name: "Copy the inventory config"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "proxmox.json.j2"
|
src: "{{ ansible_inventory }}.json.j2"
|
||||||
dest: "/etc/ansible/proxmox.json"
|
dest: "/etc/ansible/{{ ansible_inventory }}.json"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
# some basic default values...
|
# some basic default values...
|
||||||
|
|
||||||
inventory = /etc/ansible/{{ ansible_inventory }}
|
inventory = /etc/ansible/{{ ansible_inventory }}.py
|
||||||
#library = /usr/share/my_modules/
|
#library = /usr/share/my_modules/
|
||||||
#module_utils = /usr/share/my_module_utils/
|
#module_utils = /usr/share/my_module_utils/
|
||||||
#remote_tmp = ~/.ansible/tmp
|
#remote_tmp = ~/.ansible/tmp
|
||||||
|
|
Reference in New Issue