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 state: installed
- name: Get current state of authselect - name: Get current state of authselect
ansible.builtin.shell: ansible.builtin.command:
cmd: /usr/bin/authselect current --raw ; /bin/true argv:
- /usr/bin/authselect
- current
- "--raw"
register: result register: result
check_mode: false check_mode: false
changed_when: false changed_when: false
failed_when: result.rc not in [0, 2]
- name: Enable mkhomedir - name: Enable mkhomedir
ansible.builtin.command: ansible.builtin.command: