fix the tests, and update documentation

This commit is contained in:
Eric Anderson 2021-06-07 10:32:57 -07:00 committed by Yusuke Tsutsumi
commit 53955f2fa0
10 changed files with 30 additions and 37 deletions

View file

@ -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:

View file

@ -24,6 +24,7 @@
owner: root
group: root
state: directory
mode: 0755
- name: gcloud | Archive | Link binaries to /usr/bin (like package install)
file:

View 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.