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
|
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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue