add role for samba-install, grub-config, update network and handlers
This commit is contained in:
16
roles/grub-config/tasks/main.yml
Normal file
16
roles/grub-config/tasks/main.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
- name: custom grub configuration for timeout and reboot halt
|
||||
template:
|
||||
src: templates/50_custom.j2
|
||||
dest: /etc/grub.d/50_custom
|
||||
mode: '0775'
|
||||
notify: [ 'Update GRUB' ]
|
||||
|
||||
# TODO: add special case if plymouth is used
|
||||
- name: let the system boot quietly
|
||||
lineinfile:
|
||||
dest: /etc/default/grub
|
||||
state: present
|
||||
regexp: '^(GRUB_CMDLINE_LINUX_DEFAULT=")'
|
||||
line: '\1{{ system.grub.boot_options}}"'
|
||||
backrefs: yes
|
||||
notify: [ 'Update GRUB' ]
|
||||
Reference in New Issue
Block a user