Ansible playbooks for installing Docker
Update README
Update README, add LICENSE
Initial commit

refs

master
browse log

clone

read-only
https://git.sr.ht/~gjabell/ansible-docker-install
read/write
git@git.sr.ht:~gjabell/ansible-docker-install

You can also use your local clone with git send-email.

ansible-docker-install

Ansible playbooks for installing Docker on Ubuntu, Debian and CentOS

Use

  • 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

Notes

  • 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