Install the RHEL system roles package and create a playbook called timesync.yml that:--> Runs over all managed hosts.--> Uses the timesync role.--> Configures the role to use the time server 192.168.10.254 ( Hear in redhat labuse 'classroom.example.com' )--> Configures the role to set the iburst parameter as enabled.
Create an Ansible vault to store user passwords as follows:* The name of the vault is valut.yml* The vault contains two variables as follows:- dev_pass with value wakennym- mgr_pass with value rocky* The password to encrypt and decrypt the vault is atenorth* The password is stored in the file /home/admin/ansible/password.txt
In /home/sandy/ansible/ create a playbook called logvol.yml. In the play create a logical volume called Iv0 and make it of size 1500MiB on volume group vgO If there is not enough space in the volume group print a message 'Not enough space for logical volume' and then make a 800MiB Iv0 instead. If the volume group still doesn't exist, create a message 'Volume group doesn't exist' Create an xfs filesystem on all Iv0 logical volumes. Don't mount the logical volume.
Create a playbook called timesvnc.yml in /home/sandy/ansible using rhel system role timesync. Set the time to use currently configured nip with the server 0.uk.pool.ntp.org. Enable burst. Do this on all hosts.
Create a file called requirements.yml in /home/sandy/ansible/roles a file called role.yml in /home/sandy/ansible/. The haproxy-role should be used on the proxy host. And when you curl http://node3.example.com it should display 'Welcome to node4.example.com' and when you curl again 'Welcome to node5.example.com' The php-role should be used on the prod host.