mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-08-07 14:44:28 -07:00
fix role tests
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).
This commit is contained in:
parent
18900797c5
commit
f692dd4c76
21 changed files with 113 additions and 96 deletions
|
@ -1,25 +1,25 @@
|
|||
---
|
||||
# tasks that install gcloud on debian
|
||||
- name: gcloud | Debian | Add an Apt signing key, uses whichever key is at the URL
|
||||
apt_key:
|
||||
ansible.builtin.apt_key:
|
||||
url: "{{ gcloud_apt_key }}"
|
||||
state: present
|
||||
|
||||
- name: gcloud | Debian | Add the gcloud repository
|
||||
apt_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
|
||||
apt: name=google-cloud-sdk update_cache=yes
|
||||
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
|
||||
apt: name=google-cloud-sdk-{{ item }} update_cache=yes
|
||||
ansible.builtin.apt: name=google-cloud-sdk-{{ item }} update_cache=yes
|
||||
register: task_result
|
||||
until: task_result is success
|
||||
retries: 10
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
# tasks file for gcloud
|
||||
|
||||
- name: gcloud | Start package installation for specific distro
|
||||
include_tasks: "{{ ansible_os_family|lower }}.yml"
|
||||
ansible.builtin.include_tasks: "{{ ansible_os_family|lower }}.yml"
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
---
|
||||
- name: gcloud | RHEL | Add an Apt signing key, uses whichever key is at the URL
|
||||
yum_repository:
|
||||
ansible.builtin.yum_repository:
|
||||
name: google-cloud-sdk
|
||||
description: Google Cloud SDK
|
||||
file: google-cloud-sdk
|
||||
ansible.builtin.file: google-cloud-sdk
|
||||
baseurl: https://packages.cloud.google.com/yum/repos/cloud-sdk-el7-x86_64
|
||||
enabled: yes
|
||||
gpgcheck: yes
|
||||
|
@ -13,14 +13,14 @@
|
|||
- https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
|
||||
|
||||
- name: gcloud | RHEL | Install the google-cloud-sdk package
|
||||
yum: name=google-cloud-sdk update_cache=yes
|
||||
ansible.builtin.yum: 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
|
||||
yum: name=google-cloud-sdk-{{ item }} update_cache=yes
|
||||
ansible.builtin.yum: name=google-cloud-sdk-{{ item }} update_cache=yes
|
||||
register: task_result
|
||||
until: task_result is success
|
||||
retries: 10
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue