On Jul 11, 2022, at 3:59 AM, Mahdi Idriss <idriss.m...@gmail.com> wrote:
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 group2. Browsing to hosts in the balancers host group (example: http://node5.......com) produces the output: Welcome message on 192.168.1.103. 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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CADHi4Y8%3DP7BuZLLStqELaac3jn7_Jh%2BZYT68xFEmmjTcwFvZJA%40mail.gmail.com.
This email and its attachments are confidential and may be privileged. Any unauthorized use or disclosure is prohibited. If you receive this email in error, please notify the sender and permanently delete the original without forwarding, making any copies or disclosing its contents. NextCapital is a brand name representing NextCapital Group, Inc. and its subsidiaries, NextCapital Software, Inc. and NextCapital Advisers, Inc.