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:
2025-10-21 21:30:34 +02:00
parent 2eed5c74c8
commit 018e89ff8f

View File

@@ -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
vars:
addc_hostname: "DC1"