walidsaad / k8s-setup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Edit install.yml to avoid the fail of `ansible-playbook site.yml`

fghamacha opened this issue · comments

  • Walid, i think that you need to delete the line kubectl=1.20.2-00 from k8s-setup/k8s-ansible/roles/prepare/tasks/install.yml

  • When running ansible-playbook site.yml , Ansible installs kubeadm 1.20.2-00. It automatically installs the last version of kubectl . Then, if you have kubectl=1.20.2-00 AFTER kubeadm in install.yml Ansible will try to install kubectl 1.20.2-00. But you already have the last version of kubectl, so this is a downgrade. Because of the attempted downgrade, you get the following error: "E: Packages were downgraded and -y was used without --allow-downgrades.\n" . Then the ansible-playbook site.yml wil fail