Create a file called adhoc.sh /home/sandy/ansible in which will use adhoc commands to set up a new repository. The name of the repo will be 'EPEL' thedescription 'RHEL8' the baseurl is'https://dl.fedoraproject.org/pub/epel/epel-releaselatest-8.noarch.rmp'there is no gpgcheck, but you should enable the repo.
* You should be able to use an bash script using adhoc commands to enable repos. Depending on your lab setup, you may need to make this repo "state=absent" after you pass this task.
Create an empty encrypted file called myvault.yml in /home/sandy/ansible and set the password notsafepw. to Rekey the password iwejfj2221 to .
Create a playbook /home/bob/ansible/timesync.yml that runs on hosts in the webservers host group and does the following:
1.
Uses the timesync RHEL system role.
2.
Sets the ntp server to 0.uk.pool.ntp.org
3.
Sets the timezone to UTC
Create a playbook /home/bob /ansible/motd.yml that runs on all inventory hosts and docs the following:
1.
The playbook should replaee any existing content of/etc/motd in the following text.
2.
Use ansible facts to display the FQDN of each host
3.
On hosts in the dev host group the line should be "Welcome to Dev Server FQDN".
4.
On hosts in the webserver host group the line should be "Welcome to Apache Server FQDN".
5.
On hosts in the database host group the line should be "Welcome to MySQL Server FQDN".
Create a file called specs.empty in home/bob/ansible on the local machine as follows:
HOST= MEMORY= BIOS= VDA_DISK_SIZE= VDB_DISK_SIZE=
Create the playbook /home/bob/ansible/specs.yml which copies specs.empty to all remote nodes' path/root/specs.txt. Using the specs.yml playbook then edit specs.txt on the remote machines to reflect the appropriate ansible facts.
Create a playbook called regulartasks.yml which has the system that append the date to /root/datefile every day at noon. Name is job 'datejob'
Create a file called requirements.yml /home/sandy/ansible/roles in to install two roles. The source for the first role is geerlingguy.haproxy and geerlingguy.php. Name the first haproxy-role and the second php-role. The roles should be installed in/home/sandy/ansible/roles.
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 file called mysecret.yml on the control host using ansible vault in home/bob/ansible. Set the password to 'notasafepass' and inside the file create a variable called dev_pass with the value of devops. Save the file. Then go back in the file and change dev_pass value to devops123. Then change the vault password of mysecret.yml to verysafepass
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Red Hat exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your EX407 exam preparations and Red Hat certification application, do not hesitate to visit our Vcedump.com to find your solutions here.