Unpin docker versions
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Danny Bessems 2022-08-30 09:10:27 +02:00
parent ddbcf836ab
commit 2ee5dd308d

View File

@ -37,30 +37,28 @@
repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ releasename.stdout }} stable repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ releasename.stdout }} stable
state: present state: present
# Pinning versions due to odd DNS issue in 20.x # # Pinning versions due to odd DNS issue in 20.x
- name: Pin Docker engine to specific version # - name: Pin Docker engine to specific version
copy: # copy:
dest: "{{ item.dest }}" # dest: "{{ item.dest }}"
content: "{{ item.content }}" # content: "{{ item.content }}"
with_items: # with_items:
- dest: /etc/apt/preferences.d/docker-ce # - dest: /etc/apt/preferences.d/docker-ce
content: | # content: |
Package: docker-ce # Package: docker-ce
Pin: version 5:19.03.13~3-0~ubuntu-focal # Pin: version 5:19.03.13~3-0~ubuntu-{{ releasename.stdout }}
Pin-Priority: 1001 # Pin-Priority: 1001
- dest: /etc/apt/preferences.d/docker-ce-cli # - dest: /etc/apt/preferences.d/docker-ce-cli
content: | # content: |
Package: docker-ce-cli # Package: docker-ce-cli
Pin: version 5:19.03.13~3-0~ubuntu-focal # Pin: version 5:19.03.13~3-0~ubuntu-{{ releasename.stdout }}
Pin-Priority: 1001 # Pin-Priority: 1001
- name: Install Docker engine - name: Install Docker engine
apt: apt:
update_cache: yes update_cache: yes
allow_unauthenticated: yes allow_unauthenticated: yes
name: name:
# - docker-ce=5:19.03.13~3-0~ubuntu-focal
# - docker-ce-cli=5:19.03.13~3-0~ubuntu-focal
- docker-ce - docker-ce
- docker-ce-cli - docker-ce-cli
- containerd.io - containerd.io