From 018e89ff8fb8a44b5d6d2cabc61f654c62369c33 Mon Sep 17 00:00:00 2001 From: Jose Date: Tue, 21 Oct 2025 21:30:34 +0200 Subject: [PATCH] =?UTF-8?q?refactor=20=E2=99=BB=EF=B8=8F:=20Update=20setup?= =?UTF-8?q?acdc.yml=20to=20use=20localhost=20for=20hostnames=20and=20insta?= =?UTF-8?q?ll=20'proxmoxer'=20Python=20library=20on=20the=20control=20node?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- tasks/setupacdc.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tasks/setupacdc.yml b/tasks/setupacdc.yml index 00c13bf..4ad88f0 100644 --- a/tasks/setupacdc.yml +++ b/tasks/setupacdc.yml @@ -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"