Docker

Document Control

TODO:

  • Overall structure.
  • Initial draft complete
  • Testing
  • Ready

Ansible Role Ansible Quality Score Build Status GitHub issues GitHub last commit

User Story: Docker

As a: UNIX and Linux system administrator

I want to: Install Docker-CE

So that: I can build and run containers.

Using the role

Using the role in a playbook
---
- name: Install docker
  hosts: all

  tasks:
    - name: docker is configured
      import_role:
        name: crivetimihai.docker
      vars:
        docker_remove_packages: true
        docker_enable_service: true
        docker_copy_templates: true
        docker_users:
          - user: devops
            group: docker
      tags: docker
# Install the role
ansible-galaxy install crivetimihai.docker

# Run the playbook
ansible-playbook docker-playbook.yml

Last update: 2020-02-02