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:
Yusuke Tsutsumi 2022-11-26 07:00:46 +00:00 committed by Yusuke Tsutsumi
commit f692dd4c76
21 changed files with 113 additions and 96 deletions

View file

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

View file

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