feat: add docker_repo_distribution variable

This commit is contained in:
Adrien Waksberg 2019-03-18 19:04:13 +01:00
parent 3dd6da701f
commit 29cd642f94
3 changed files with 5 additions and 2 deletions

View file

@ -10,6 +10,7 @@ Install and configure docker service
## Role variables
* `docker_repo_distribution` - set the distribution for docker repository (default: `ansible_distribution_release`)
* `docker_compose_version` - set the docker-compose version to install (default: `1.23.2`)
* `docker_networks` - array with the docker networks

View file

@ -1,5 +1,7 @@
---
docker_repo_distribution: '{{ ansible_distribution_release }}'
docker_compose_version: 1.23.2
docker_compose_url: https://github.com/docker/compose/releases/download/{{ docker_compose_version }}/docker-compose-Linux-x86_64
docker_compose_url: "https://github.com/docker/compose/releases/download/\
{{ docker_compose_version }}/docker-compose-Linux-x86_64"
docker_services: {}
docker_networks: []

View file

@ -22,7 +22,7 @@
- name: add docker repository
apt_repository:
repo: 'deb https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable'
repo: 'deb https://download.docker.com/linux/debian {{ docker_repo_distribution }} stable'
tags: docker
- name: install docker package