replaced with shell
This commit is contained in:
parent
5c2b43479f
commit
c5ca73d5cf
10
playbook.yml
10
playbook.yml
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user