ansible playbook is a collection of ansible code that will be executed by ansible to configure the server.
- Control node (e.g local computer or any VPS)
- Remote Node (e.g VPS)
note : control node is where you will install ansible and execute the ansible-playbooks. I use my local computer for control node.
note : Remote node
- make sure ansible is installed in your control node. read ansible doc to install ansible.
- make sure you can connect using ssh key based (passwordless) from control node to remote host as root user. read here if you have not configure it. test your connection to server (remote host) :
ssh root@your-server-ip-address
, if you can connect yo can start with this playbooks. - clone this repository
git clone https://github.com/dekiakbar/ansible-playbooks
- navigate to the dir (e.g ubuntu-lemp) it has its own readme for installation :)