Skip to content

Commit 179fed3

Browse files
committed
Use command module instead of shell module
1 parent cda5717 commit 179fed3

File tree

1 file changed

+1
-2
lines changed
  • linux_os/guide/system/accounts/accounts-pam/accounts_password_pam_modules_in_authselect_profile/ansible

1 file changed

+1
-2
lines changed

linux_os/guide/system/accounts/accounts-pam/accounts_password_pam_modules_in_authselect_profile/ansible/shared.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
{{{ ansible_ensure_authselect_custom_profile(rule_title) }}}
1010

1111
- name: '{{{ rule_title }}} - Get authselect current profile'
12-
ansible.builtin.shell:
13-
cmd: head -1 /etc/authselect/authselect.conf
12+
ansible.builtin.command: head -1 /etc/authselect/authselect.conf
1413
register: result_authselect_profile_name
1514
changed_when: false
1615
when:

0 commit comments

Comments
 (0)