To Create an Ansible Playbook which will dynamically load the variable file named same as OS_name and just by using the variable names we can Configure our target node

Manujayanth
Apr 4, 2021
  1. Create a ansible playbook

2. Create a files for OS such as Redhat and Ubuntu and add the respective packages in their files

For Redhat apache package
For Ubuntu apache package

3. Run the ansible playbook,I.e.based on the gathering facts from the OS,It will determine the file and use the Module

--

--