mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-08-26 16:01:50 -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,24 +1,24 @@
|
|||
---
|
||||
- name: gcsfuse | Ensure gpg is installed
|
||||
apt: name=gnupg
|
||||
ansible.builtin.apt: name=gnupg
|
||||
register: task_result
|
||||
until: task_result is success
|
||||
retries: 10
|
||||
delay: 2
|
||||
|
||||
- name: gcsfuse | Add an apt signing key
|
||||
apt_key:
|
||||
ansible.builtin.apt_key:
|
||||
url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
|
||||
state: present
|
||||
|
||||
- name: gcsfuse | Add the apt repository
|
||||
apt_repository:
|
||||
ansible.builtin.apt_repository:
|
||||
repo: deb http://packages.cloud.google.com/apt gcsfuse-{{ ansible_distribution_release }} main
|
||||
state: present
|
||||
filename: gcsfuse
|
||||
|
||||
- name: gcsfuse | Install gcsfuse
|
||||
apt: name=gcsfuse update_cache=yes
|
||||
ansible.builtin.apt: name=gcsfuse update_cache=yes
|
||||
register: task_result
|
||||
until: task_result is success
|
||||
retries: 10
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
---
|
||||
# tasks file for google.cloud.gcsfuse
|
||||
|
||||
- include_tasks: "{{ ansible_os_family|lower }}.yml"
|
||||
- name: main
|
||||
ansible.builtin.include_tasks: "{{ ansible_os_family|lower }}.yml"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue