mkhomedir: Convert shell to command
This commit is contained in:
parent
ad625d47d6
commit
f0b1b064db
1 changed files with 6 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue