Question 6

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'

Question 7

Create a role called sample-apache and store it in /home/bob/ansible/roles. The role should satisfy the following requirements:
*In the role, install and enable httpd. Also enable the firewall to allow http. Also run the template
*index.html.j2 and make sure this runs Create a template index.html.j2 that displays "Welcome to the server HOSTNAME" In a play called apache.yml in /home/bob/ansible/ run the sample-apache role.

Question 8

If forks is set to 100 and Ansible is run against an inventory of 50 servers, how many forks will Ansible create?
  • Question 9

    Where is Ansible's inventory stored by default?
  • Question 10

    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