1
0

change from copyin to upload in virt-customise cmd

This commit is contained in:
michael 2022-10-30 22:09:51 +13:00
parent f648ce0448
commit 0ada17f736

View File

@ -40,7 +40,7 @@
virt-customize --format qcow2 \ virt-customize --format qcow2 \
-a {{ root_vhd_pool_dir }}/{{ vm_name }}_vda.qcow2 \ -a {{ root_vhd_pool_dir }}/{{ vm_name }}_vda.qcow2 \
--hostname {{ vm_name }}.{{ vm_domain }} \ --hostname {{ vm_name }}.{{ vm_domain }} \
--copy-in /tmp/eno1_{{ vm_name }}.network:/etc/systemd/network/10-eno1.network \ --upload /tmp/eno1_{{ vm_name }}.network:/etc/systemd/network/10-eno1.network \
--append-line "/etc/hosts:127.0.1.1 {{ vm_name }}.{{ vm_domain }} {{ vm_name }}" --append-line "/etc/hosts:127.0.1.1 {{ vm_name }}.{{ vm_domain }} {{ vm_name }}"
--password ladmin:password:{{ hostvars[vm_name]['ansible_become_pass'] }} \ --password ladmin:password:{{ hostvars[vm_name]['ansible_become_pass'] }} \
--root-password password:{{ hostvars[vm_name]['ansible_root_pass'] }} \ --root-password password:{{ hostvars[vm_name]['ansible_root_pass'] }} \