Created
September 29, 2017 14:31
-
-
Save NeilHanlon/3da30ef5f4b2e3f4b39d82e2888a6550 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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