Hi guys,

I had this question on my last ex294 ansible exame, so I was not able to
solve it, anyone have the right playbook or can create one?

Create a playbook called roles. yml with requirements:

·         The playbook contains a play that runs on hosts in the balancers
host group and uses the *balancer role*:

1.       This role configures a service to load balance web server requests
between hosts in the webservers host group

2.       Browsing to hosts in the balancers host group (example:
http://node5.......com) produces the output: *Welcome message on
192.168.1.10*

3.       Reloading the browser produces output from the alternate web
server: *Welcome message on 192.168.1.11*

·

·         The playbook contains a play that runs on hosts in the webservers
host group and uses the *phpinfo role*:

1.       Browsing to hosts in the webservers host group with the URL
 /hello .php produces the following output: *Hello  PHP World  from
{{ansible_fqdn}}*



2.        For ex:  browsing to http://*node3*....com/hello.php, produces
the following output: Hello PHP World from *node3*…...com (Note: along with
various details of the PHP configuration including the version of PHP that
is installed)





3.       Similarly browsing to http://*node4*....com/hello.php. produces
the following output: Hello PHP World from *node4*…...com (Note: along with
various details of the PHP configuration including the version of PHP that
is installed.)

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CADHi4Y8%3DP7BuZLLStqELaac3jn7_Jh%2BZYT68xFEmmjTcwFvZJA%40mail.gmail.com.

Reply via email to