Deploying package based on OS
Apr 7, 2021
We launch 3 instances on AWS: Amazon Linux 2, RHEL8, and Ubuntu. We use Amazon Linux 2 as a control node and other two as target nodes. We begin with creating a workspace and defining the ansible.cfg file.
Create the inventory file with a group containing both out target nodes.
Create variable files for different operating systems with each of them containing the name of package for Apache web-server.
Write the playbook. It should look like this:
After the playbook has been run the web servers will be deployed.
Feel free to contact on my LinkedIn.