mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-06 02:40:29 -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).
33 lines
949 B
YAML
33 lines
949 B
YAML
---
|
|
# task file to configure bash completion for gcloud
|
|
- name: gcloud | Archive | Debian | Ensure bash completion is installed
|
|
ansible.builtin.apt: name=bash-completion
|
|
register: task_result
|
|
until: task_result is success
|
|
retries: 10
|
|
delay: 2
|
|
when: ansible_os_family == "Debian"
|
|
|
|
- name: gcloud | Archive | RedHat | Ensure bash completion is installed
|
|
ansible.builtin.yum:
|
|
name:
|
|
- bash-completion
|
|
register: task_result
|
|
until: task_result is success
|
|
retries: 10
|
|
delay: 2
|
|
when: ansible_os_family == "RedHat"
|
|
|
|
- name: gcloud | Archive | Ensure bash_completion.d directory exists
|
|
ansible.builtin.file:
|
|
path: /etc/bash_completion.d
|
|
owner: root
|
|
group: root
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: gcloud | Archive | Link binaries to /usr/bin (like package install)
|
|
ansible.builtin.file:
|
|
src: "{{ gcloud_library_path }}/completion.bash.inc"
|
|
dest: /etc/bash_completion.d/gcloud
|
|
state: link
|