From 7c4e00e45eb6f7163599eb75c0556dcf9ce486f9 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 16 Jun 2021 15:47:45 +0200 Subject: add TODO and links to PRs fixing the force=yes workarounds of the apt module --- roles/containerd/tasks/main.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'roles/containerd/tasks') diff --git a/roles/containerd/tasks/main.yml b/roles/containerd/tasks/main.yml index 10371243..26acea66 100644 --- a/roles/containerd/tasks/main.yml +++ b/roles/containerd/tasks/main.yml @@ -22,6 +22,15 @@ name: "{{ containerd_pkg_name }}{% if containerd_pkg_version is defined %}={{ containerd_pkg_version }}{% endif %}" state: present force: yes + ## TODO: remove force once the following changes are available + ## https://github.com/ansible/ansible/pull/73629 or https://github.com/ansible/ansible/pull/72562 + ## https://github.com/ansible/ansible/pull/74852 + +- name: disable automatic upgrades for containerd package + when: containerd_pkg_version is defined + dpkg_selections: + name: "{{ containerd_pkg_name }}" + selection: hold - name: fetch containerd default config check_mode: no @@ -35,12 +44,6 @@ dest: /etc/containerd/config.toml notify: restart containerd -- name: disable automatic upgrades for containerd package - when: containerd_pkg_version is defined - dpkg_selections: - name: "{{ containerd_pkg_name }}" - selection: hold - - name: start and enable containerd service: name: containerd -- cgit v1.2.3