style 💎: Update template with new password field
Added a new parameter to the create_proxmox_debian_template.yml file to allow for a custom password when creating a Proxmox LXC instance. This change improves flexibility and security when deploying Debian-based images.
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
lxc_memory: 2048
|
lxc_memory: 2048
|
||||||
lxc_net: "name=eth0,bridge=vmbr0,ip=dhcp"
|
lxc_net: "name=eth0,bridge=vmbr0,ip=dhcp"
|
||||||
lxc_rootfs_size: "8G"
|
lxc_rootfs_size: "8G"
|
||||||
|
lxc_password: "password"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- block:
|
- block:
|
||||||
@@ -34,6 +35,7 @@
|
|||||||
ansible.builtin.command: >
|
ansible.builtin.command: >
|
||||||
pct create {{ lxc_id }} {{ lxc_template }}
|
pct create {{ lxc_id }} {{ lxc_template }}
|
||||||
--hostname {{ lxc_name }}
|
--hostname {{ lxc_name }}
|
||||||
|
--password '{{ lxc_password }}'
|
||||||
--cores {{ lxc_cores }}
|
--cores {{ lxc_cores }}
|
||||||
--memory {{ lxc_memory }}
|
--memory {{ lxc_memory }}
|
||||||
--ostype {{ lxc_ostype }}
|
--ostype {{ lxc_ostype }}
|
||||||
@@ -71,6 +73,8 @@
|
|||||||
name: lxc_builder
|
name: lxc_builder
|
||||||
ansible_host: "{{ lxc_ip.stdout }}"
|
ansible_host: "{{ lxc_ip.stdout }}"
|
||||||
ansible_user: root
|
ansible_user: root
|
||||||
|
ansible_password: "{{ lxc_password }}"
|
||||||
|
|
||||||
ansible_ssh_common_args: '-o StrictHostKeyChecking=no'
|
ansible_ssh_common_args: '-o StrictHostKeyChecking=no'
|
||||||
|
|
||||||
- name: Customize Debian cloud image inside LXC
|
- name: Customize Debian cloud image inside LXC
|
||||||
|
|||||||
Reference in New Issue
Block a user