RHEL9 RHCE Model Question & Answer
Important Configurations
Control node:
workstation.lab.example.com
Managed node:
servera.lab.example.com
serverb.lab.example.com
serverc.lab.example.com
serverd.lab.example.com
All node root password is
redhat
and Ansible control node user name is
student
and password
student
.
Create a directory
ansible
under the path
/home/student
and all the playbook should be under
/home/student/ansible
.
All playbook should be owned/executed by
student
and Ansible managed node user name is
devops
.
Unless advised password should be
redhat
for all users
Ansible Automation Platform 2.2 &
utility.lab.example.com
Cridentials are admin, redhat
Note:
In Exam, If they not given the Managed node user use the control node user as remote user
Qn. 1. Install and Configure Ansible on the control node
Qn. 2. Create a playbook adhoc.yml for configuring repository in all nodes.
Qn. 3. Installing the Collection.
Qn. 4. Installing the roles.
Qn. 5. Create an offline role named apache under 'roles' directory.
Qn. 6. Create a Playbook roles.yml for using the roles
Qn. 7. Create a playbook name timesync.yml and use system roles
Qn. 8. Create a playbook name selinux.yml and use system roles
Qn. 9. Install packages in multiple group.
Qn. 10. Create a playbook webcontent.yml and it should run on dev group.
Qn. 11. Collect hardware report using playbook in all nodes.
Qn. 12. Replace the file /etc/issue on all managed nodes.
Qn. 13. Create a custom hosts file named myhosts.
Qn. 14. Create a variable file vault.yml and that file should contains the variable and its value.
Qn. 15. Create a users and groups in user_list.yml file.
Qn. 16. Rekey the variable file from http://rhce.botweb.online/solaris.yml
Qn. 17. Create a cronjob for user student in all nodes.
Qn. 18. Create a logical volume named data of 800M size from the volume group research
Qn. 19. Create a partition and file system on balancers group.