summaryrefslogtreecommitdiff
path: root/roles/docker/tasks
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2018-01-20 03:31:51 +0100
committerChristian Pointner <equinox@spreadspace.org>2018-01-20 03:31:51 +0100
commit9932bc76bb05a6c0dae2e9ce5bc2af440eaa3bb3 (patch)
tree293cbc7351842db182fba65035f28d4e8b21d87b /roles/docker/tasks
parentkube-proxy needs bridge-nf-call-iptables to be set (diff)
use specific version of kubernetes and docker-ce
Diffstat (limited to 'roles/docker/tasks')
-rw-r--r--roles/docker/tasks/main.yaml9
1 files changed, 8 insertions, 1 deletions
diff --git a/roles/docker/tasks/main.yaml b/roles/docker/tasks/main.yaml
index c07888f7..2604dead 100644
--- a/roles/docker/tasks/main.yaml
+++ b/roles/docker/tasks/main.yaml
@@ -39,5 +39,12 @@
- name: install docker
apt:
- name: docker-ce
+ name: "docker-ce{% if docker_pkg_version is defined %}={{ docker_pkg_version }}{% endif %}"
state: present
+ force: yes
+
+- name: disable automatic upgrades for docker package
+ when: docker_pkg_version is defined
+ dpkg_selections:
+ name: docker-ce
+ selection: hold