Skip to content

Commit

Permalink
Merge pull request #279 from jLemmings/main
Browse files Browse the repository at this point in the history
Fix not writeable case
  • Loading branch information
MonolithProjects authored Nov 28, 2024
2 parents a8e8651 + 5e57eb3 commit 859a27f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tasks/cis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

- name: Copy systemctl config file for kernel hardening
ansible.builtin.copy:
src: "{{ '/usr/local/share/rke2/rke2-cis-sysctl.conf' if (usr_local.stat.writeable) or (partition_result.rc == 1) else '/opt/rke2/share/rke2/rke2-cis-sysctl.conf' }}"
src: "{{ '/usr/local/share/rke2/rke2-cis-sysctl.conf' if (not usr_local.stat.writeable) or (partition_result.rc == 1) else '/opt/rke2/share/rke2/rke2-cis-sysctl.conf' }}"
dest: /etc/sysctl.d/60-rke2-cis.conf
mode: 0600
remote_src: true
Expand Down
2 changes: 1 addition & 1 deletion tasks/rke2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@

- name: Set RKE2 bin path
ansible.builtin.set_fact:
rke2_bin_path: "{{ '/usr/local/bin/rke2' if (usr_local.stat.writeable) or (partition_result.rc == 1) else '/opt/rke2/bin/rke2' }}"
rke2_bin_path: "{{ '/usr/local/bin/rke2' if (not usr_local.stat.writeable) or (partition_result.rc == 1) else '/opt/rke2/bin/rke2' }}"

- name: Check RKE2 version
ansible.builtin.shell: |
Expand Down

0 comments on commit 859a27f

Please sign in to comment.