How to update the Ansible gcp_container_cluster module?

孤者浪人 提交于 2021-02-11 12:10:21

问题


I'm facing a bug which I reported while using the gcp_container_cluster module. According to a comment on this bug

  1. This module is no longer maintained in this repository, and now located at https://github.com/ansible-collections/google.cloud/
  2. Although the resulting module is located at the above repo, Google programmatically generates their modules, and the repo that houses the code to generate the module lives at https://www.github.com/GoogleCloudPlatform/magic-modules

Thus I tried ansible-galaxy collection install google.cloud following the README of the project. This has no effect as the command installs into /home/richter/.ansible/collections/ansible_collections/google/cloud according to its output and, but ansible-playbook uses /usr/local/lib/python3.8/dist-packages/ansible/modules/cloud/google/gcp_container_cluster.py as shown when run with -vvv. A detailed reproducer can be found in the issue.

Then I tried to understand the second project, but I have no idea how to make it usable by Ansible. I seems to require a ton of Ruby dependencies for building and then I still don't know what I'm building.

It's very odd that the official documentation doesn't mention at all that Ansible apparently contains an outdated version of the plugin and that it makes few sense to use it. The issue I'm experiencing is caused by deprecation of master auth which is effective for years and I thus don't believe anyone has ever been able to use the GKE Ansible module following the official documentation. Maybe I'm suffering from a deeper misunderstanding.

I'm using Ansible 2.9.10 on Ubuntu 20.04 installed with sudo pip3 install --upgrade ansible.

来源:https://stackoverflow.com/questions/62799952/how-to-update-the-ansible-gcp-container-cluster-module

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!