added hostname parameter for configuration
This commit is contained in:
@@ -63,11 +63,13 @@
|
|||||||
api_token_secret: "{{ proxmox_api_token_secret }}"
|
api_token_secret: "{{ proxmox_api_token_secret }}"
|
||||||
node: "{{ target_node }}"
|
node: "{{ target_node }}"
|
||||||
vmid: "{{ cloned_lxc.vmid }}"
|
vmid: "{{ cloned_lxc.vmid }}"
|
||||||
|
hostname: "{{ vm_hostname }}"
|
||||||
cores: "{{ cpu_cores }}"
|
cores: "{{ cpu_cores }}"
|
||||||
memory: "{{ ram_gb | int * 1024 }}"
|
memory: "{{ ram_gb | int * 1024 }}"
|
||||||
netif:
|
netif:
|
||||||
net0: "name=eth0,bridge=vmbr0,ip=dhcp"
|
net0: "name=eth0,bridge=vmbr0,ip=dhcp"
|
||||||
state: present
|
state: present
|
||||||
|
update: true
|
||||||
|
|
||||||
- name: Start the LXC container
|
- name: Start the LXC container
|
||||||
community.proxmox.proxmox:
|
community.proxmox.proxmox:
|
||||||
|
|||||||
Reference in New Issue
Block a user