mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-08-08 23:24:27 -07:00
ansible-lint was updated and the GitHub action did not pin the dependency, resulting in the repository to fail sanity tests. Updating the repository to adhere to new fatal linter rules, but also pinning the linter to prevent failures that may be unrelated to the particular commit. Updating usages for python3.8 to 3.9 as ansible-lint is dropping support for 3.8.
34 lines
956 B
YAML
34 lines
956 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
|