This is an Ansible project that automates the setup and configuration of servers. In this case, installation and starting of Nginx
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
What things you need to install the software and how to install them
- Ansible (You can install it with
pip install ansible
) - Python (Ansible is written in Python, so you need Python installed on your machine. You can download it from here)
-
Clone the repository
git clone https://github.com/gthaka/ansible-nginx-install.git
-
Navigate to the directory
cd ansible-nginx-install
-
Update
inventory
file with your server ips. In this case, we have server groupsubuntu_servers
andalpine_servers
-
Run the Ansible Playbook
ansible-playbook -i inventory first-playbook.yml -kK
-kK
option specifies promp for password for ssh and user