chore 📦: Update setupacdc.yml with new node configuration
Updated the hosts and tasks to accommodate a new Proxmox node, adding a hostname and MAC address for DC1. This change enables the creation of an LXC container on the new node.
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
|
|
||||||
|
vars:
|
||||||
|
addc_hostname: "DC1"
|
||||||
|
mac_address: "8E:90:31:DE:31:36"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install 'proxmoxer' and 'requests' Python libraries for the ansible controller
|
- name: Install 'proxmoxer' and 'requests' Python libraries for the ansible controller
|
||||||
ansible.builtin.pip:
|
ansible.builtin.pip:
|
||||||
@@ -10,17 +14,10 @@
|
|||||||
state: present
|
state: present
|
||||||
become: no
|
become: no
|
||||||
|
|
||||||
- hosts: node0
|
|
||||||
|
|
||||||
vars:
|
|
||||||
addc_hostname: "DC1"
|
|
||||||
mac_address: "8E:90:31:DE:31:36"
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
- name: Create lxc container
|
- name: Create lxc container
|
||||||
community.proxmox.proxmox:
|
community.proxmox.proxmox:
|
||||||
vmid: 200
|
vmid: 200
|
||||||
node: node0
|
node: "{{ hostvars['node0']['ansible_host'] }}"
|
||||||
api_user: root@pam
|
api_user: root@pam
|
||||||
api_password: "{{ proxmox_password }}"
|
api_password: "{{ proxmox_password }}"
|
||||||
api_host: node0
|
api_host: node0
|
||||||
|
|||||||
Reference in New Issue
Block a user