Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Leiner <[email protected]>
  • Loading branch information
aleiner and Adam Leiner authored Jan 15, 2025
1 parent 4d552fa commit de54a31
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/rke2/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ rke2_reboot: false
rke2_version_majmin: ""
rke2_version_rpm: ""
rke2_package_state: "installed"
rke2_systemd_env_config_file_path: ""
8 changes: 8 additions & 0 deletions roles/rke2/tasks/configure_rke2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
- name: Run CIS-Hardening Tasks
ansible.builtin.include_tasks: cis_hardening.yml

- name: Include task file add-systemd-env.yml
ansible.builtin.include_tasks: add_ansible_managed_config.yml
vars:
file_contents: "{{ lookup('file', rke2_systemd_env_config_file_path) }}"
file_destination: "/etc/default/{{ service_name }}"
file_description: "systemd env options"
file_path: "{{ rke2_systemd_env_config_file_path }}"

- name: "Include task file add_ansible_managed_config.yml for {{ file_description }}"
ansible.builtin.include_tasks: add_ansible_managed_config.yml
vars:
Expand Down

0 comments on commit de54a31

Please sign in to comment.