mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-08-29 09:21:50 -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,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