Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

iancleary/ansible-role-docker

Repository files navigation

ARCHIVED

ansible-role-docker

This repo is archived. I no longer plan to maintain it. You are welcome to do anything permitted by the LICENSE.

Why, see this article about NixOS vs Ansible for more details

CI workflow status Release workflow status Ansible Galaxy License

This role installs docker and docker-compose.

Requirements

Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here.

Supported and Tested ansible_os_families:

  • Ubuntu 22.04
  • Ubuntu 20.04

Pull Requests welcome!

Role Variables

A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.


docker_pip_version: 6.0.0 docker_compose_pip_version: 1.29.2 docker_users: []


docker_pip_version: 6.0.0

Version to use for docker pypi package.


docker_compose_pip_version: 1.29.2

Version to use for docker-compose pypi package.


docker_users: []

The users to be added to the docker group, this defaults to an empty list. This allows the listed users to run docker without sudo.


Dependencies

A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.

N/A

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: servers
  user: nonroot
  roles:
    - role: iancleary.docker
      become: true
- hosts: servers
  user: root
  roles:
    - role: iancleary.docker

License

MIT

Author Information

This role was created in 2021 by Ian Cleary.

Inspiration for the structure of this repo came from Jeff Geerling.