Ansible. Install Docker CE and Docker-Compose
This Playbook install Docker CE and Docker-Compose on Ubuntu or CentOS server. OS version will be automatically determined.
- SSH root access to the target servers.
How to do that: Copy your public key to the target server with command below:
ssh-copy-id [email protected]
- In ./ansible.cfg - check path to your private key and username
- In ./group_vars/target - change the values you need
- Run Playbook:
ansible-playbook run.yml