Question 31

Besides galaxy.ansible.com, where else can ansible-galaxy pull roles from?
  • Question 32

    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

    Question 33

    Which is the default inventory file used by Ansible?
  • Question 34

    Create a playbook /home/bob /ansible/motd.yml that runs on all inventory hosts and docs the following: The playbook should replaee any existing content of/etc/motd in the following text. Use ansible facts to display the FQDN of each host On hosts in the dev host group the line should be "Welcome to Dev Server FQDN".
    On hosts in the webserver host group the line should be "Welcome to Apache Server FQDN".
    On hosts in the database host group the line should be "Welcome to MySQL Server FQDN".

    Question 35

    Create a file in/home/sandy/ansible/calledreport.yml.Using this playbook, get a filecalledreport.txt(make it look exactly as below). Copy this file over to all remote hosts at/root/report.txt.Then edit the lines in the file to provide the real informationofthehosts. Ifa disk does not exist then write NONE.