refactor ♻️: Update setupacdc.yml to use localhost for hostnames and install 'proxmoxer' Python library on the control node.
Refactored the setupacdc.yml playbook to use localhost for hostnames and added a task to install the 'proxmoxer' Python library on the control node. This change ensures that the playbook is more portable and easier to manage.
This commit is contained in:
@@ -1,4 +1,14 @@
|
|||||||
- hosts: "node0"
|
- hosts: localhost
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Install 'proxmoxer' Python library on the control node
|
||||||
|
ansible.builtin.pip:
|
||||||
|
name: proxmoxer
|
||||||
|
state: present
|
||||||
|
delegate_to: localhost
|
||||||
|
become: yes # Required if installing to the system Python environment
|
||||||
|
|
||||||
|
- hosts: node0
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
vars:
|
vars:
|
||||||
addc_hostname: "DC1"
|
addc_hostname: "DC1"
|
||||||
|
|||||||
Reference in New Issue
Block a user