forked from ansible-lockdown/RHEL9-CIS
renamed variable and updated tag
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
14d038e8eb
commit
7c4c3f9e4d
3 changed files with 24 additions and 24 deletions
|
|
@ -196,14 +196,14 @@
|
|||
# Added to ensure ssh drop in file exists if not default /etc/ssh/sshd_config
|
||||
- name: "PRELIM | PATCH | SSH Config file is not exist"
|
||||
when:
|
||||
- rhel9_cis_sshd_config_file != '/etc/ssh/sshd_config'
|
||||
- rhel9cis_sshd_config_file != '/etc/ssh/sshd_config'
|
||||
- "'openssh-server' in ansible_facts.packages"
|
||||
tags:
|
||||
- ssh
|
||||
- always
|
||||
- level1_server
|
||||
- level1_workstation
|
||||
ansible.builtin.file:
|
||||
path: "{{ rhel9_cis_sshd_config_file }}"
|
||||
path: "{{ rhel9cis_sshd_config_file }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0600'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue