mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-10-16 05:14:16 -07:00
Ansible role tests were failing due to ansible-lint reporting multiple errors. Fixing those errors resolves the failing tests. Switching gcsfuse to use gcloud's bootstrap to follow the current docker install instructions. Removing centos as it's a discontinued distribution. Adding a check to ensure integration tests are skipped unless they are run by a branch (a public fork does not pass required integration test credentials).
27 lines
888 B
YAML
27 lines
888 B
YAML
---
|
|
# tasks that install gcloud on debian
|
|
- name: gcloud | Debian | Add an Apt signing key, uses whichever key is at the URL
|
|
ansible.builtin.apt_key:
|
|
url: "{{ gcloud_apt_key }}"
|
|
state: present
|
|
|
|
- name: gcloud | Debian | Add the gcloud repository
|
|
ansible.builtin.apt_repository:
|
|
repo: "deb {{ gcloud_apt_url }} {{ gcloud_apt_repo }} main"
|
|
state: present
|
|
filename: google-cloud-sdk
|
|
|
|
- name: gcloud | Debian | Install the google-cloud-sdk package
|
|
ansible.builtin.apt: name=google-cloud-sdk update_cache=yes
|
|
register: task_result
|
|
until: task_result is success
|
|
retries: 10
|
|
delay: 2
|
|
|
|
- name: gcloud | Debian | Install the google-cloud-sdk additional components
|
|
ansible.builtin.apt: name=google-cloud-sdk-{{ item }} update_cache=yes
|
|
register: task_result
|
|
until: task_result is success
|
|
retries: 10
|
|
delay: 2
|
|
loop: "{{ gcloud_additional_components }}"
|