This playbook is to install docker on a server (CENTOS7) and secure docker socket with TLS on port 2376
Before running the playbook
- Create hosts file with Server name inside
echo "[hosts]
"dds_name" >> hosts
TO RUN PLAYBOOK
ansible-playbook playbook.yml -i hosts -u root --extra-vars "dds_name=<> dds_host=<ip>"
dds_host = the IP of server dds_name = server domain name