Debian Codegraph @

ansible_collections/google/cloud/roles/gcloud/tasks/archive/archive_install.yml

raw symbols SCIP
1 ---
2 - name: Gcloud | Archive | Ensure temp path exists
3 ansible.builtin.file:
4 path: "{{ gcloud_archive_path }}"
5 state: directory
6 mode: "0755"
7
8 - name: Gcloud | Archive | Extract Cloud SDK archive
9 ansible.builtin.unarchive:
10 src: "{{ gcloud_archive_url }}"
11 dest: "{{ gcloud_archive_path }}"
12 remote_src: true
13 creates: "{{ gcloud_library_path }}"
14
15 - name: Gcloud | Archive | Link binaries to /usr/bin (like package install)
16 ansible.builtin.file:
17 src: "{{ gcloud_library_path }}/bin/{{ item }}"
18 dest: /usr/bin/{{ item }}
19 state: link
20 loop:
21 - bq
22 - docker-credential-gcloud
23 - gcloud
24 - git-credential-gcloud.sh
25 - gsutil
26 when: not gcloud_install_script
27
28 - name: Gcloud | Archive | Add command completion
29 ansible.builtin.include_tasks: command_completion.yml
30 when: gcloud_command_completion
31
32 - name: Gcloud | Archive | Install into Path
33 changed_when: false
34 ansible.builtin.command: >-
35 {{ gcloud_archive_path }}/install.sh --quiet
36 --usage-reporting {{ gcloud_usage_reporting | lower }}
37 {% if gcloud_profile_path %}
38 --rc-path {{ gcloud_profile_path }}
39 {% endif %}
40 --command-completion {{ gcloud_command_completion | lower }}
41 --path-update {{ gcloud_update_path | lower }}
42 {% if gcloud_override_components | length > 0 %}--override-components
43 {% for component in gcloud_override_components %}{{ component }}
44 {% if loop.index < gcloud_override_components | length %}
45 {% endif %}
46 {% endfor %}
47 {% endif %}
48 {% if gcloud_additional_components | length > 0 %}--additional-components
49 {% for component in gcloud_additional_components %}{{ component }}
50 {% if loop.index < gcloud_additional_components | length %}
51 {% endif %}
52 {% endfor %}
53 {% endif %}
54 when: gcloud_install_script