EX294 Exam Question 11

Create an empty encrypted file called myvault.yml in /home/sandy/ansible and set the password to notsafepw. Rekey the password to iwejfj2331.
  • EX294 Exam Question 12

    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.

    EX294 Exam Question 13

    Create a playbook called web.yml as follows:
    * The playbook runs on managed nodes in the "dev" host group
    * Create the directory /webdev with the following requirements:
    --> membership in the apache group
    --> regular permissions: owner=r+w+execute, group=r+w+execute, other=r+execute
    s.p=set group-id
    * Symbolically link /var/www/html/webdev to /webdev
    * Create the file /webdev/index.html with a single line of text that reads:
    "Development"
    --> it should be available on http://servera.lab.example.com/webdev/index.html

    EX294 Exam Question 14

    Create a file called requirements.yml in /home/sandy/ansible/roles 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.

    EX294 Exam Question 15

    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.