Skip to content

Instantly share code, notes, and snippets.

@NeilHanlon
Created September 29, 2017 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NeilHanlon/3da30ef5f4b2e3f4b39d82e2888a6550 to your computer and use it in GitHub Desktop.
Save NeilHanlon/3da30ef5f4b2e3f4b39d82e2888a6550 to your computer and use it in GitHub Desktop.
---
- hosts: all
remote_user: nhanlon
become: yes
become_user: root
tasks:
- name: Remove splash=quiet from /etc/grub.conf
become: yes
replace:
path: /etc/grub.conf
regexp: ' splash=quiet '
replace: ' '
backup: yes
- name: Remove splash=quiet from /boot/grub/grub.conf
become: yes
replace:
path: /boot/grub/grub.conf
regexp: ' splash=quiet '
replace: ' '
backup: yes
- name: Update grub defaults
become: yes
replace:
path: /etc/defaults/grub
regex: ' splash=quiet '
replace: ' '
backup: yes
validate: 'grub2-mkconfig'
when:
- ansible_os_family == "CentOS"
- ansible_os_major_version == "7"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment