wtanaka / ansible-role-gcloud-sdk Goto Github PK
View Code? Open in Web Editor NEWAnsible role to install Google Cloud SDK
Ansible role to install Google Cloud SDK
Hey, noticed that there have been 4 commits since the last release. Could you create a new release capturing these new changes please?
Cheers.
@sandal-maker
install_additional_packages.yml is never included.
The role README instructs the usage of var gcloud_sdk_additional_package_names to install additional packages.
But my ansible play;
- hosts: all
roles:
- role: gcloud
vars:
gcloud_sdk_additional_package_names:
- kubectl
never installs additional packages.
TASK [gcloud-sdk : install google-cloud-sdk with default package manager] ******
[DEPRECATION WARNING]: Invoking "{{backcompat_pkg_mgr}}" only once while using
a loop via squash_actions is deprecated. Instead of using a loop to supply
multiple items and specifying `name: "{{item}}"`, please use `name: '{{
package_names }}'` and remove the loop. This feature will be removed in version
2.11. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using
`result|success` use `result is success`. This feature will be removed in
version 2.9. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
changed: [instance] => (item=['google-cloud-sdk'])
TASK [gcloud-sdk : check if google-cloud-sdk exists] ***************************
skipping: [instance]
TASK [gcloud-sdk : install google-cloud-sdk with dnf] **************************
skipping: [instance]
PLAY RECAP *********************************************************************
instance : ok=15 changed=7 unreachable=0 failed=0
I'm expecting kubectl to be installed here.
Could you create releases?
The key does not get renewed. I had to remove it manually.
https://github.com/wtanaka/ansible-role-gcloud-sdk/blob/master/tasks/get_key.yml#L8
I am running the Ansible 2.9.0.dev0
and v2.0.1
of the Ansible role and it seems they dropped support for sudo
in favour of become
as highlighted in the documentation.
This breaks the role as Ansible errors with:
ERROR! 'sudo' is not a valid attribute for a Task
The error appears to be in '/path/to/ansible/roles/wtanaka.gcloud-sdk/tasks/compat_sudo.yml': line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
---
- name: install python-apt on ansible < 1.6.0 and ubuntu et al
^ here
This error can be suppressed as a warning using the "invalid_task_attribute_failed" configuration
Converting all sudo
task attributes to become
should fix the problem.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.