klips/ansible/roles/docker
Shaun Reed 2bebf584f8 More README updates to read(?) 2019-08-31 02:47:50 -04:00
..
defaults Add docker Ansible role 2019-08-29 07:27:08 +00:00
handlers Add docker Ansible role 2019-08-29 07:27:08 +00:00
meta Add docker Ansible role 2019-08-29 07:27:08 +00:00
tasks Add docker-compose to docker role 2019-08-29 07:32:57 +00:00
README.md More README updates to read(?) 2019-08-31 02:47:50 -04:00

README.md

docker

A simple role for installing Docker and Docker Compose on a new Ubuntu host using Ansible.

Requirements

Expects that the host is using apt package manager, and running a Debian / Ubuntu system.

Role Variables

Found in .../roles/docker/defaults/main.yml

---
docker_users: [user1, user2]

docker_users - A list of users to configure / add to the docker group

Example Playbook

After setting the users to configure with Docker in .../defaults/main.yml, create the following play.yml and run ansible-playbook play.yml after setting the correct hosts in your /etc/ansible/hosts file.

---
- hosts: docker-host
  become: yes
  roles:
    - docker

Feel free to rename play.yml, hosts group name, etc. Just be sure it reflects to your settings in the related files.