Skip to content

Commit 232adc3

Browse files
Merge pull request #206 from jLemmings/main
Fix CIS hardening rke2-cis-sysctl.conf path
2 parents dbe86a0 + 626725a commit 232adc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/cis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
- name: Copy systemctl config file for kernel hardening
1717
ansible.builtin.copy:
18-
src: /usr/local/share/rke2/rke2-cis-sysctl.conf
18+
src: "{{ '/usr/local/share/rke2/rke2-cis-sysctl.conf' if usr_local.stat.writeable == True else '/opt/rke2/share/rke2/rke2-cis-sysctl.conf' }}"
1919
dest: /etc/sysctl.d/60-rke2-cis.conf
2020
mode: 0600
2121
remote_src: true

0 commit comments

Comments
 (0)