You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Paweł Krupa ec0806f57b
Create LICENSE
7 years ago
.travis add molecule and testinfra test suite 7 years ago
defaults comment-out unused variable 7 years ago
handlers move to systemd 7 years ago
meta commenting out zesty support until Docker apt repos support it 8 years ago
tasks cleanup 7 years ago
templates better installation method 7 years ago
tests cleanup 7 years ago
vars better upgrade method - use "latest" switch 7 years ago
.gitignore use systemd module to reload config; make linter happy 7 years ago
.travis.yml fix pip installation in travis 7 years ago
LICENSE Create LICENSE 7 years ago
README.md update readme 7 years ago
molecule.yml comment-out not working envs 7 years ago

README.md

Build Status

docker

Install and configure Docker.

Role Variables

docker_config

A dict of options that are written into docker's daemon.json config file. See the docs for dockerd for a full list of available options.

Default values: (set them in your docker_config to overwrite)

storage-driver: devicemapper
log-level: info

docker_version

Specify the version of Docker to install, e.g. 1.12.6, 17.05. It allows to upgrade to latest version by specifying latest.

Default value: 17.06

docker_proxy, docker_http_proxy, docker_https_proxy, docker_no_proxy

docker_proxy specifies if proxy need to be applied. Default value of docker_proxy is no. If you need proxy set it to yes and updated other three variables as needed.

Dependencies

None

Example Playbook

Install Docker

- hosts: servers
  roles:
    - mongrelion.docker

Install and configure docker

- hosts: servers
  roles:
    - role: mongrelion.docker
      docker_config:
        live-restore: true
        userland-proxy: false

Testing

The preferred way of locally testing the role is to use Docker and molecule (v1.25). You will have to install Docker on your system. See Get started for a Docker package suitable to for your system. All packages you need to can be specified in one line:

pip install ansible 'ansible-lint>=3.4.15' 'molecule==1.25.0' docker 'testinfra>=1.7.0,<=1.10.1'

This should be similar to one listed in .travis.yml file in install section. After installing test suit you can run test by running

molecule test

For more information about molecule go to their docs.

License

MIT

Author Information

You can find me on Twitter: @mongrelion