feat: add docker_repo_distribution variable
This commit is contained in:
parent
3dd6da701f
commit
29cd642f94
3 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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: []
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue