sssd: Use command instead of shell
This commit is contained in:
parent
fa469574b7
commit
c8afd02fb2
1 changed files with 8 additions and 2 deletions
|
@ -20,9 +20,13 @@
|
|||
enabled: true
|
||||
|
||||
- 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
|
||||
failed_when: false
|
||||
check_mode: false
|
||||
changed_when: false
|
||||
|
||||
|
@ -33,4 +37,6 @@
|
|||
- select
|
||||
- sssd
|
||||
- --force
|
||||
register: result
|
||||
changed_when: result.rc == 0
|
||||
when: result.stdout.split()[0] != "sssd"
|
||||
|
|
Loading…
Add table
Reference in a new issue