diff --git a/tasks/main.yml b/tasks/main.yml index f38dfbd..b520253 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -2,11 +2,19 @@ - name: Include vars for {{ ansible_os_family }} include_vars: "{{ ansible_os_family }}.yml" -- name: Remove all other's containerd version packages - package: - name: "{{ containerd_remove_packages_name }}" - state: absent - update_cache: yes +- name: Add Official docker's repo + get_url: + url: https://download.docker.com/linux/centos/docker-ce.repo + dest: /etc/yum.repos.d/docker-ce.repo + mode: 0644 + when: + - ansible_os_family == "RedHat" + +#- name: Remove all other's containerd version packages +# package: +# name: "{{ containerd_remove_packages_name }}" +# state: absent +# update_cache: yes - name: Create thin volumes for containerd lvol: @@ -93,3 +101,6 @@ owner: root mode: 0644 notify: Restart containerd + +- name: Flush handlers + meta: flush_handlers