aboutsummaryrefslogblamecommitdiffstats
path: root/roles/space_server/tasks/kernel.yml
blob: d22fa86d798f067b8ffce452fe748aa1af159125 (plain) (tree)
1
2
3
4
5
6
7
8
9
   

                                              
                      
                    

               
              
             

                           
 
                            
       
                                            
                    
               



                     
 
                                             
       
                                  
                     

               
              
                                   


                               
                               
                   


               



                      
                  
       
            

                        
---
- name: Make sure /etc/kernel/install.d exists
  file:
    path: '{{ item }}'
    state: directory
    owner: root
    group: root
    mode: 0755
  with_items:
  - '/etc/kernel'
  - '/etc/kernel/install.d'

- name: Mask grub and grubby
  file:
    path: '/etc/kernel/install.d/{{ item }}'
    src: '/dev/null'
    state: link
    force: yes
  with_items:
  - 20-grub.install
  - 20-grubby.install

- name: Create syslinux loader entry and menu
  copy:
    dest: '/etc/kernel/install.d/'
    src: '{{ item }}'
    owner: root
    group: root
    mode: 0755
  with_fileglob: 'kernel/*.install'

- name: Set kernel command line
  template:
    dest: '/etc/kernel/cmdline'
    src: cmdline.j2
    owner: root
    group: root
    mode: 0644

- name: Install kernel
  dnf:
    name: kernel
    state: present
  tags:
  - packages

# vim: set ts=2 sw=2 et: