style 💎: Update pct command syntax for LXC container creation
Updated the pct create command to use single quotes instead of double quotes, and removed unnecessary options. This change ensures consistent configuration and avoids potential issues with quoted values.
This commit is contained in:
@@ -10,14 +10,14 @@
|
||||
|
||||
- name: Create LXC container using pct command
|
||||
shell: |
|
||||
pct create 200 /var/lib/vz/template/cache/debian-13-standard_13.1-1_amd64.tar.zst \
|
||||
-hostname {{ addc_hostname }} \
|
||||
-password 123456 \
|
||||
-cores 2 \
|
||||
-memory 2048 \
|
||||
-net0 name=eth0,bridge=vmbr0,ip={{ addc_ansible_host }}/24,gw={{ location_gateway }} \
|
||||
-storage local-lvm \
|
||||
-rootfs 1G
|
||||
pct create 200 'local:vztmpl/debian-13-standard_13.1-1_amd64.tar.zst'
|
||||
--hostname {{ addc_hostname }} \
|
||||
--password 123456 \
|
||||
--cores 2 \
|
||||
--memory 2048 \
|
||||
--net0 name=eth0,bridge=vmbr0,ip={{ addc_ansible_host }}/24,gw={{ location_gateway }} \
|
||||
--storage local-lvm \
|
||||
--rootfs 1G
|
||||
become: yes
|
||||
become_user: root
|
||||
|
||||
|
||||
Reference in New Issue
Block a user