Ansible Playbook that will dynamically load the variable file named same as OS name and just by using the variable names it will configure target nodes.

  • The name of Apache Web Server in Redhat 8 is httpd.
  • And the name of Apache Web Server in Ubuntu 20 is apache2.
ansible -m setup <IP of Managed Node>

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store