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
Apr 4, 2021
- Create a ansible playbook
2. Create a files for OS such as Redhat and Ubuntu and add the respective packages in their files
3. Run the ansible playbook,I.e.based on the gathering facts from the OS,It will determine the file and use the Module