Debian Codegraph @

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

raw
1 ---
2 # task file to configure bash completion for gcloud
3 - name: Gcloud | Archive | Debian | Ensure bash completion is installed
4 ansible.builtin.apt:
5 name: bash-completion
6 register: task_result
7 until: task_result is success
8 retries: 10
9 delay: 2
10 when: ansible_os_family == "Debian"
11
12 - name: Gcloud | Archive | RedHat | Ensure bash completion is installed
13 ansible.builtin.dnf:
14 name:
15 - bash-completion
16 register: task_result
17 until: task_result is success
18 retries: 10
19 delay: 2
20 when: ansible_os_family == "RedHat"
21
22 - name: Gcloud | Archive | Ensure bash_completion.d directory exists
23 ansible.builtin.file:
24 path: /etc/bash_completion.d
25 owner: root
26 group: root
27 state: directory
28 mode: "0755"
29
30 - name: Gcloud | Archive | Link binaries to /usr/bin (like package install)
31 ansible.builtin.file:
32 src: "{{ gcloud_library_path }}/completion.bash.inc"
33 dest: /etc/bash_completion.d/gcloud
34 state: link