diff --git a/roles/sssd_ad_auth/tasks/pam_RedHat.yml b/roles/sssd_ad_auth/tasks/pam_RedHat.yml index d2bfb54..efce3fb 100644 --- a/roles/sssd_ad_auth/tasks/pam_RedHat.yml +++ b/roles/sssd_ad_auth/tasks/pam_RedHat.yml @@ -4,7 +4,7 @@ command: "grep -c -P '^auth\\s+sufficient\\s+pam_sss.so' /etc/pam.d/system-auth" register: ad_authconfig_done changed_when: False - ignore_errors: True + failed_when: False tags: auth - name: Configure the PAM stack diff --git a/roles/sssd_ldap_auth/tasks/pam_RedHat.yml b/roles/sssd_ldap_auth/tasks/pam_RedHat.yml index 9c7bf0e..e433bec 100644 --- a/roles/sssd_ldap_auth/tasks/pam_RedHat.yml +++ b/roles/sssd_ldap_auth/tasks/pam_RedHat.yml @@ -3,8 +3,8 @@ - name: Check if authconfig needs to update pam config command: "grep -P '^auth\\s+sufficient\\s+pam_sss.so' /etc/pam.d/system-auth" register: auth_sss_done - changed_when: false - ignore_errors: true + changed_when: False + failed_when: False - name: Configure authentication with authconfig command: authconfig --enablemkhomedir --enablesssd --enablesssdauth --update