google.cloud/roles/gcloud/tasks/package/redhat.yml
Yusuke Tsutsumi 791e11d45d chore: pin ansible-lint to 6.13.1
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.
2023-02-18 11:44:25 -08:00

31 lines
970 B
YAML

---
- name: Gcloud | RHEL | Add an Apt signing key, uses whichever key is at the URL
ansible.builtin.yum_repository:
name: google-cloud-sdk
description: Google Cloud SDK
baseurl: https://packages.cloud.google.com/yum/repos/cloud-sdk-el7-x86_64
enabled: yes
gpgcheck: yes
repo_gpgcheck: yes
gpgkey:
- https://packages.cloud.google.com/yum/doc/yum-key.gpg
- https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
- name: Gcloud | RHEL | Install the google-cloud-sdk package
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
ansible.builtin.yum:
name: "google-cloud-sdk-{{ item }}"
update_cache: "yes"
register: task_result
until: task_result is success
retries: 10
delay: 2
loop: "{{ gcloud_additional_components }}"