Skip to content

Commit

Permalink
preinstall containerd.io to avoid kmem bug on >=containerd.io-1.2.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Ulferts committed Nov 18, 2019
1 parent cf28e30 commit dc20495
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions roles/dcos_requirements/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@
gpgkey: https://download.docker.com/linux/centos/gpg
when: ansible_distribution == 'CentOS' and yum_list_docker.results | selectattr("yumstate", "match", "installed") | list | length == 0

- name: "Preinstall containerd.io for docker-ce on CentOS preventing kmem bug"
yum:
name: "{{ dcos_containerd_pkg_name }}"
update_cache: true
state: present
when: ansible_distribution == 'CentOS' and yum_list_docker.results | selectattr("yumstate", "match", "installed") | list | length == 0

- block:
- name: "Finding RHEL extras repository name (Only EL systems)"
shell: |
Expand Down
1 change: 1 addition & 0 deletions roles/dcos_requirements/vars/CentOS7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ dcos_timesync: True
cloud_time_sync_package: chrony
onprem_time_sync_package: ntp
dcos_docker_pkg_name: docker-ce-18.09.2
dcos_containerd_pkg_name: containerd.io-1.2.6
dcos_prereq_packages:
- tar
- xz
Expand Down

0 comments on commit dc20495

Please sign in to comment.