Skip to content

Commit

Permalink
roles/kernel: add simple role to do kernel configuration
Browse files Browse the repository at this point in the history
Signed-off-by: John Helmert III <[email protected]>
  • Loading branch information
ajakk committed Aug 13, 2023
1 parent 2b8a361 commit 2e3325b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ my_roles:
- firewalld
- python_exec
- ansible_pull
- kernel
- podman_gentoo
- dnsmasq
- unbound
Expand Down
2 changes: 2 additions & 0 deletions roles/kernel/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
uki: false
1 change: 1 addition & 0 deletions roles/kernel/files/install.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
layout=uki
8 changes: 8 additions & 0 deletions roles/kernel/tasks/kernel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
- name: Add install.conf
ansible.builtin.copy:
src: install.conf
dest: /etc/kernel/install.conf
owner: root
group: root
mode: 0644
4 changes: 4 additions & 0 deletions roles/kernel/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
- name: Add Gentoo kernel UKI configuration
when: uki
ansible.builtin.include_tasks: kernel.yml

0 comments on commit 2e3325b

Please sign in to comment.