mkhomedir: Convert shell to command

This commit is contained in:
Timo Makinen 2025-01-30 19:13:32 +00:00
parent ad625d47d6
commit f0b1b064db

View file

@ -5,11 +5,15 @@
state: installed
- name: Get current state of authselect
ansible.builtin.shell:
cmd: /usr/bin/authselect current --raw ; /bin/true
ansible.builtin.command:
argv:
- /usr/bin/authselect
- current
- "--raw"
register: result
check_mode: false
changed_when: false
failed_when: result.rc not in [0, 2]
- name: Enable mkhomedir
ansible.builtin.command: