Fix connection DNS resolving inside chroot

This commit is contained in:
2024-10-28 20:26:15 +01:00
parent 4cf4816be0
commit 1d1b2fff42
2 changed files with 8 additions and 6 deletions

View File

@@ -30,9 +30,9 @@
- name: Create cloud-init disk
delegate_to: localhost
ansible.builtin.command: cloud-localds
{{ vm_path | default('/var/lib/libvirt/images/') }}
{{ hostname }}-cloudinit.iso /tmp/cloud-user-data-{{ hostname }}.yml
ansible.builtin.shell: |
cloud-localds {{ vm_path | default('/var/lib/libvirt/images/') }}\
{{ hostname }}-cloudinit.iso /tmp/cloud-user-data-{{ hostname }}.yml \
-N /tmp/cloud-network-config-{{ hostname }}.yml
changed_when: result.rc == 0
register: result