ref: 81c1cd5e9bf7370218f42dae9580c82d995a0630 ansible-docker-install/README.md -rw-r--r-- 849 bytes
81c1cd5eGalen Abell Update README 2 years ago


Ansible playbooks for installing Docker on Ubuntu, Debian and CentOS


  • Add your hosts to the hosts file (see file for examples + more info)
  • Optionally add a list of users that should be added to the docker group to the users var in the playbooks/docker.yml playbook
  • Optionally enable the docker-compose role to also install docker-compose by uncommenting that section of the playbooks/docker.yml playbook
  • Run the playbooks/docker.yml playbook with: ansible-playbook playbooks/docker.yml


  • Adding users to the docker group essentially gives them root access, so be careful who you add to this group
  • You might need to tweak some settings such as:
    • become_pass for the root user
    • login credentials (ie ssh / password / etc.)
    • path to ansible python interpreter