aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/space_server/tasks')
-rw-r--r--roles/space_server/tasks/kernel.yml26
1 files changed, 8 insertions, 18 deletions
diff --git a/roles/space_server/tasks/kernel.yml b/roles/space_server/tasks/kernel.yml
index 2ab417c..ca80476 100644
--- a/roles/space_server/tasks/kernel.yml
+++ b/roles/space_server/tasks/kernel.yml
@@ -1,18 +1,14 @@
---
-- name: Make sure /etc/kernel exists
- file:
- path: '/etc/kernel'
- state: directory
- owner: root
- group: root
- mode: 0755
- name: Make sure /etc/kernel/install.d exists
file:
- path: '/etc/kernel/install.d'
+ path: '{{ item }}'
state: directory
owner: root
group: root
mode: 0755
+ with_items:
+ - '/etc/kernel'
+ - '/etc/kernel/install.d'
- name: Mask grubby
file:
@@ -20,20 +16,14 @@
state: link
src: '/dev/null'
-- name: Create syslinux loader entry
- copy:
- src: kernel/90-loaderentry.install
- dest: '/etc/kernel/install.d/90-loaderentry.install'
- owner: root
- group: root
- mode: 0755
-- name: Create syslinux menu
+- name: Create syslinux loader entry and menu
copy:
- src: kernel/95-syslinux-menu.install
- dest: '/etc/kernel/install.d/95-syslinux-menu.install'
+ src: '{{ item }}'
+ dest: '/etc/kernel/install.d/'
owner: root
group: root
mode: 0755
+ with_fileglob: 'kernel/*.install'
- name: Set kernel command line
template: