mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-07-30 08:31:37 -07:00
fix the tests, and update documentation
This commit is contained in:
parent
5ea5ecda34
commit
53955f2fa0
10 changed files with 30 additions and 37 deletions
|
@ -1,21 +0,0 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2019 Eric Anderson
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
|
@ -1,6 +1,4 @@
|
|||
# ericsysmin.gcloud
|
||||
|
||||
[](https://travis-ci.org/ericsysmin/ansible-role-gcloud)
|
||||
# google.cloud.gcloud
|
||||
|
||||
This role installs the gcloud command-line tool on a linux system.
|
||||
|
||||
|
@ -48,7 +46,7 @@ All variables which can be overridden are stored in defaults/main.yml file as we
|
|||
```yaml
|
||||
- hosts: servers
|
||||
roles:
|
||||
- role: ericsysmin.gcloud
|
||||
- role: google.cloud.gcloud
|
||||
```
|
||||
|
||||
## License
|
||||
|
|
|
@ -5,7 +5,7 @@ gcloud_install_type: package
|
|||
# default values for gcloud apt installation
|
||||
gcloud_apt_key: https://packages.cloud.google.com/apt/doc/apt-key.gpg
|
||||
gcloud_apt_url: http://packages.cloud.google.com/apt
|
||||
gcloud_apt_repo: cloud-sdk-{{ ansible_distribution_release }}
|
||||
gcloud_apt_repo: cloud-sdk
|
||||
|
||||
# default values for gcloud yum installation
|
||||
gcloud_yum_baseurl: https://packages.cloud.google.com/yum/repos/cloud-sdk-el7-x86_64
|
||||
|
|
|
@ -3,9 +3,8 @@ galaxy_info:
|
|||
role_name: gcloud
|
||||
author: Eric Anderson
|
||||
description: Ansible role to install google-cloud-sdk
|
||||
company: Avi Networks
|
||||
license: MIT
|
||||
min_ansible_version: 2.4
|
||||
license: GPL-3.0
|
||||
min_ansible_version: 2.9
|
||||
platforms:
|
||||
- name: Ubuntu
|
||||
versions:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: gcloud | Archive | Ensure temp path exists
|
||||
file: path={{ gcloud_archive_path }} state=directory
|
||||
file: path={{ gcloud_archive_path }} state=directory mode=0755
|
||||
|
||||
- name: gcloud | Archive | Extract Cloud SDK archive
|
||||
unarchive:
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
owner: root
|
||||
group: root
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: gcloud | Archive | Link binaries to /usr/bin (like package install)
|
||||
file:
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
path: "{{ gcloud_archive_path }}/google-cloud-sdk/VERSION"
|
||||
register: gcloud_status
|
||||
|
||||
- debug: var=gcloud_status
|
||||
- name: gcloud | Archive | Get gcloud_status
|
||||
debug: var=gcloud_status
|
||||
|
||||
- name: gcloud | Archive | Set installed version if installation exists
|
||||
block:
|
||||
|
@ -16,9 +17,11 @@
|
|||
- name: gcloud | Archive | Setting the gcloud_installed_version variable/fact
|
||||
set_fact:
|
||||
gcloud_installed_version: "{{ (gcloud_installed_version_data.content|b64decode|trim) }}"
|
||||
- debug:
|
||||
- name: gcloud | Archive | get the gcloud_installed_version
|
||||
debug:
|
||||
msg: "google-cloud-sdk: {{ gcloud_installed_version }} is installed"
|
||||
- debug:
|
||||
- name: gcloud | Archive | Version already installed
|
||||
debug:
|
||||
msg: >-
|
||||
Skipping installation of google-cloud-sdk version {{ gcloud_version }} when
|
||||
{{ gcloud_installed_version }} is already installed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue