Skip to content

Commit

Permalink
add when conditional to remediation of sssd_enable_pam_service
Browse files Browse the repository at this point in the history
older Ansible versions might terminate prematurely if there are no config files found in /etc/sssd/conf.d directory
  • Loading branch information
vojtapolasek committed May 9, 2024
1 parent 7ef2387 commit 98cd93e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
replace: '\1,pam'
with_items: "{{ sssd_conf_d_files.files | map(attribute='path') }}"
register: modify_lines_sssd_conf_d_files
when: sssd_conf_d_files.matched is defined and sssd_conf_d_files.matched >= 1

- name: {{{ rule_title }}} - Find /etc/sssd/sssd.conf
ansible.builtin.stat:
Expand Down

0 comments on commit 98cd93e

Please sign in to comment.