Debian Codegraph @

ansible_collections/google/cloud/roles/gcloud/tasks/package/debian.yml

raw
1 ---
2 # tasks that install gcloud on debian
3 - name: Gcloud | Debian | Add an Apt signing key, uses whichever key is at the URL
4 ansible.builtin.apt_key:
5 url: "{{ gcloud_apt_key }}"
6 state: present
7
8 - name: Gcloud | Debian | Add the gcloud repository
9 ansible.builtin.apt_repository:
10 repo: deb {{ gcloud_apt_url }} {{ gcloud_apt_repo }} main
11 state: present
12 filename: google-cloud-cli
13
14 - name: Gcloud | Debian | Install the google-cloud-cli package
15 ansible.builtin.apt:
16 name: google-cloud-cli
17 update_cache: "yes"
18 register: task_result
19 until: task_result is success
20 retries: 10
21 delay: 2
22
23 - name: Gcloud | Debian | Install the google-cloud-cli additional components
24 ansible.builtin.apt:
25 name: google-cloud-cli-{{ item }}
26 update_cache: "yes"
27 register: task_result
28 until: task_result is success
29 retries: 10
30 delay: 2
31 loop: "{{ gcloud_additional_components }}"