replaced with shell

This commit is contained in:
marmattheo 2025-06-13 07:23:55 +00:00
parent 5c2b43479f
commit c5ca73d5cf

View File

@ -73,16 +73,10 @@
register: incus_ready
until: incus_ready.rc == 0
- name: Run incus admin init with preseed via stdin
command: incus admin init --preseed
- name: Run incus admin init with preseed
shell: incus admin init --preseed < init-preseed.yml
args:
chdir: "{{ playbook_dir }}"
register: init_result
become: true
become_user: root
vars:
ansible_shell_type: sh
stdin: "{{ lookup('file', 'init-preseed.yml') }}"
- name: Add current user to incus-admin group