This role configures OS.
This roles was tested only on CentOS7
or RHEL7
.
- variable file
$ cat roles/ansible.rhel-preinstall/defaults/main.yaml
- configure timezone
set_timezone: Asia/Seoul
- configure disable
firewalld
unuse_firewalld: true
- configure disable
NetworkManager
unuse_networkmanager: true
- configure disable selinux
unuse_selinux: true
- configure disable
ctl+alt+del
unuse_functionkey: true
- configure local repository (request media)
install_localrepo: true
- configure local repository location
location_repo: /root/repo
- Your choice environment, graphical server or gnome desktop.
- configure install graphical server environment
install_graphical: true
- configure install gnome desktop environment
install_gnome: false
- choice disable libvirtd
unuse_libvirtd: true
- configure ntp service
install_ntp: true
- choice ntp package (
ntp
orchrony
)
ntp_package_name: chrony
- create template script file
create_template_file: true
- Auto reboot system
reboot_system: false
- git clone.
$ git clone https://github.com/chhanz/rhel-preinstall.git
- change variables.
$ vi roles/ansible.rhel-preinstall/defaults/main.yaml
- change inventory file
$ vi inventory/hosts
- run ansible playbook
$ ansible-playbook -i inventory/hosts rhel7_preinstaller.yaml