Giter Site home page Giter Site logo

ansible-role-gcloud-sdk's Introduction

Build Status CircleCI

wtanaka.gcloud-sdk

Ansible role to install Google Cloud SDK

Example Playbook

- hosts: all
  roles:
     - role: wtanaka.gcloud_sdk

Variables

The full set of configuration options available are visible in defaults/main.yml

gcloud_sdk_additional_package_names

Default: []

list of package name strings to additionally install. Available examples:

  • google-cloud-sdk-app-engine-python
  • google-cloud-sdk-app-engine-java
  • google-cloud-sdk-datastore-emulator
  • google-cloud-sdk-pubsub-emulator
  • google-cloud-sdk-bigtable-emulator
  • kubectl

License

GPLv2

Author Information

http://wtanaka.com/

ansible-role-gcloud-sdk's People

Contributors

nurgasemetey avatar wtanaka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ansible-role-gcloud-sdk's Issues

Requesting new release

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

Add support for Ansible 2.9

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.

Not installing additional packages

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.

Actual result

    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

Expected

I'm expecting kubectl to be installed here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.