Ansible Roles for Httpd and Loadbalancer and Combine them and manage the host IP’s dynamically

Manujayanth
Mar 28, 2021
  1. Create the two roles for myapache and myloadbalancer

2. Add the vars_files and tasks for myapache role

3. Add the vars_files and tasks for myloadbalancer role

4. To add the host dynamically,use this method

5. Write the role located file in ansible cfg file

6. Write the playbook and run it

--

--