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/kubernetes/kubeadm/base/tasks/main.yml | |
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/kubernetes/kubeadm/base/tasks/main.yml')
-rw-r--r-- | roles/kubernetes/kubeadm/base/tasks/main.yml | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/roles/kubernetes/kubeadm/base/tasks/main.yml b/roles/kubernetes/kubeadm/base/tasks/main.yml index 7d882f31..0fab7845 100644 --- a/roles/kubernetes/kubeadm/base/tasks/main.yml +++ b/roles/kubernetes/kubeadm/base/tasks/main.yml @@ -2,17 +2,20 @@ - name: install kubeadm packages apt: name: - - haproxy - - haproxyctl - - "kubeadm={{ kubernetes_version }}-00" - - "kubectl={{ kubernetes_version }}-00" + - haproxy + - haproxyctl + - "kubeadm={{ kubernetes_version }}-00" + - "kubectl={{ kubernetes_version }}-00" 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 kubeadm/kubectl loop: - - kubeadm - - kubectl + - kubeadm + - kubectl dpkg_selections: name: "{{ item }}" selection: hold @@ -27,8 +30,8 @@ - name: add kubeadm config for shells loop: - - zsh - - bash + - zsh + - bash blockinfile: path: "/root/.{{ item }}rc" create: yes |