refactor ♻️: Refactored the setupacdc.yml playbook to include variables for addc_hostname and mac_address, improving maintainability and readability.
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.
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
- hosts: "node0"
|
- hosts: "node0"
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
|
vars:
|
||||||
|
- addc_hostname: "DC1"
|
||||||
|
- mac_address: "8E:90:31:DE:31:36"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- vars:
|
|
||||||
addc_hostname: "DC1"
|
|
||||||
mac_address: "8E:90:31:DE:31:36"
|
|
||||||
|
|
||||||
- name: Create lxc container
|
- name: Create lxc container
|
||||||
community.proxmox.proxmox:
|
community.proxmox.proxmox:
|
||||||
|
|||||||
Reference in New Issue
Block a user