mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2026-03-25 14:27:12 +00:00
Added always tag to ensure variable exists on CIS profile tag-based execution
Signed-off-by: defnotyujine <batauling1000@gmail.com>
This commit is contained in:
parent
497b3dc8d9
commit
83cf830f36
1 changed files with 2 additions and 0 deletions
|
|
@ -259,6 +259,8 @@
|
||||||
|
|
||||||
- name: "PRELIM | PATCH | sshd_config.d/50-redhat.conf exists"
|
- name: "PRELIM | PATCH | sshd_config.d/50-redhat.conf exists"
|
||||||
when: rhel9cis_rule_5_1_10 or rhel9cis_rule_5_1_11
|
when: rhel9cis_rule_5_1_10 or rhel9cis_rule_5_1_11
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
ansible.builtin.stat:
|
ansible.builtin.stat:
|
||||||
path: /etc/ssh/sshd_config.d/50-redhat.conf
|
path: /etc/ssh/sshd_config.d/50-redhat.conf
|
||||||
register: prelim_sshd_50_redhat_file
|
register: prelim_sshd_50_redhat_file
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue