Fix customization parameters
This commit is contained in:
@@ -45,8 +45,8 @@
|
|||||||
shell: |
|
shell: |
|
||||||
virt-customize -a {{ vm_images_dir }}/{{ vm_name }}.qcow2 \
|
virt-customize -a {{ vm_images_dir }}/{{ vm_name }}.qcow2 \
|
||||||
--run-command "useradd -m -G wheel {{ vm_user }}" \
|
--run-command "useradd -m -G wheel {{ vm_user }}" \
|
||||||
--password {{ vm_user }}:{{ vm_password }} \
|
--password {{ vm_user }}:password:{{ vm_password }} \
|
||||||
--ssh-inject {{ vm_user }}:keys={{ vm_ssh_public_key | replace('~', lookup('env', 'HOME')) }} && \
|
--ssh-inject {{ vm_user }}:file:{{ vm_ssh_public_key | replace('~', lookup('env', 'HOME')) }} && \
|
||||||
touch {{ vm_images_dir }}/{{ vm_name }}.customized
|
touch {{ vm_images_dir }}/{{ vm_name }}.customized
|
||||||
become: yes
|
become: yes
|
||||||
args:
|
args:
|
||||||
|
|||||||
Reference in New Issue
Block a user