Skip to content

Commit

Permalink
Fixed stat result variable name from 16ec425
Browse files Browse the repository at this point in the history
  • Loading branch information
pyllyukko committed Feb 26, 2025
1 parent e9888a7 commit a0126fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/pam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
ansible.builtin.stat:
path: /etc/security/access.conf
checksum_algorithm: sha512
register: stat_passwdqc
register: stat_result
tags:
- pam
- check
- name: Configure login access control table (/etc/security/access.conf) (PAM)
# Only modify access.conf when it's unmodified. Otherwise expect it to have
# custom modifications and our hardening might break existing configuration.
# https://github.com/linux-pam/linux-pam/blob/master/modules/pam_access/access.conf
when: stat_passwdqc.stat.exists and stat_passwdqc.stat.checksum == "b27e5ad84e17b7a63611e5cfa88f72556f240d6d0ae1d4437f173808d65091b65d3316dcd3fa133d358c5f14508dc0314a8b3f44abf1c42ccb369586b97f5422" # noqa yaml[line-length]
when: stat_result.stat.exists and stat_result.stat.checksum == "b27e5ad84e17b7a63611e5cfa88f72556f240d6d0ae1d4437f173808d65091b65d3316dcd3fa133d358c5f14508dc0314a8b3f44abf1c42ccb369586b97f5422" # noqa yaml[line-length]
become: true
ansible.builtin.template:
src: access.conf.j2
Expand Down

0 comments on commit a0126fb

Please sign in to comment.