diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-06-16 15:47:45 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-06-16 15:47:45 +0200 |
commit | 7c4e00e45eb6f7163599eb75c0556dcf9ce486f9 (patch) | |
tree | b0513357305d0184fee0aa48b5e92c54d5ad0f06 /roles/containerd/tasks | |
parent | move acmtool roles to use FQCN (diff) |
add TODO and links to PRs fixing the force=yes workarounds of the apt module
Diffstat (limited to 'roles/containerd/tasks')
-rw-r--r-- | roles/containerd/tasks/main.yml | 15 |
1 files changed, 9 insertions, 6 deletions
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 |