sssd: Use command instead of shell

This commit is contained in:
Timo Makinen 2023-10-15 16:27:12 +00:00
parent fa469574b7
commit c8afd02fb2

View file

@ -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"