Compare commits
2 Commits
671ad4fc6b
...
240e925743
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
240e925743 | ||
|
|
9bf2e08576 |
@@ -17,6 +17,9 @@ docker-cloud ansible_host=10.0.0.102
|
||||
truenas ansible_host=10.0.0.200
|
||||
|
||||
[lxc]
|
||||
# BEGIN ANSIBLE MANAGED BLOCK FOR HOST devbox
|
||||
devbox ansible_host=10.0.0.105
|
||||
# END ANSIBLE MANAGED BLOCK FOR HOST devbox
|
||||
gitea ansible_host=10.0.0.108
|
||||
zabbix-proxy ansible_host=10.0.0.110
|
||||
ansible ansible_host=10.0.0.111
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
container_ip_cidr: "{{ container_ip if '/' in container_ip else container_ip + '/24' }}"
|
||||
|
||||
- name: Create LXC container on Proxmox
|
||||
community.general.proxmox:
|
||||
community.proxmox.proxmox:
|
||||
api_host: "{{ proxmox_host | default('10.0.0.1') }}"
|
||||
api_user: "{{ proxmox_api_user }}"
|
||||
api_token_id: "{{ proxmox_api_token_id }}"
|
||||
@@ -54,7 +54,7 @@
|
||||
register: proxmox_creation
|
||||
|
||||
- name: Start the container
|
||||
community.general.proxmox:
|
||||
community.proxmox.proxmox:
|
||||
api_host: "{{ proxmox_host | default('10.0.0.1') }}"
|
||||
api_user: "{{ proxmox_api_user }}"
|
||||
api_token_id: "{{ proxmox_api_token_id }}"
|
||||
@@ -163,6 +163,7 @@
|
||||
git config --global user.name "Ansible Automation"
|
||||
git add inventory/hosts.ini
|
||||
git commit -m "Ansible: Added host {{ hostvars[item]['inventory_hostname'] }} to inventory"
|
||||
git pull --rebase
|
||||
git push
|
||||
args:
|
||||
chdir: "{{ playbook_dir }}/../"
|
||||
|
||||
Reference in New Issue
Block a user