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
|
enabled: true
|
||||||
|
|
||||||
- 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
|
||||||
|
failed_when: false
|
||||||
check_mode: false
|
check_mode: false
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
|
@ -33,4 +37,6 @@
|
||||||
- select
|
- select
|
||||||
- sssd
|
- sssd
|
||||||
- --force
|
- --force
|
||||||
|
register: result
|
||||||
|
changed_when: result.rc == 0
|
||||||
when: result.stdout.split()[0] != "sssd"
|
when: result.stdout.split()[0] != "sssd"
|
||||||
|
|
Loading…
Add table
Reference in a new issue