From f04ab0129c4494ec467ecb3acf670f2019785b67 Mon Sep 17 00:00:00 2001 From: Jose Date: Tue, 21 Oct 2025 21:15:08 +0200 Subject: [PATCH] =?UTF-8?q?refactor=20=E2=99=BB=EF=B8=8F:=20Refactored=20t?= =?UTF-8?q?he=20setupacdc.yml=20playbook=20to=20include=20variables=20for?= =?UTF-8?q?=20addc=5Fhostname=20and=20mac=5Faddress,=20improving=20maintai?= =?UTF-8?q?nability=20and=20readability.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated the playbook to use variables for addc_hostname and mac_address, enhancing its flexibility and reusability. This change simplifies the configuration process by allowing for easy changes in these parameters without modifying the main task. --- tasks/setupacdc.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tasks/setupacdc.yml b/tasks/setupacdc.yml index 2725284..e1d9dc1 100644 --- a/tasks/setupacdc.yml +++ b/tasks/setupacdc.yml @@ -1,9 +1,10 @@ - hosts: "node0" gather_facts: yes + vars: + - addc_hostname: "DC1" + - mac_address: "8E:90:31:DE:31:36" + tasks: - - vars: - addc_hostname: "DC1" - mac_address: "8E:90:31:DE:31:36" - name: Create lxc container community.proxmox.proxmox: