mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-08-25 07:21:49 -07:00
fix: upgrade ansible version, address test and lint errors
This commit is contained in:
parent
c15b47250d
commit
08ada5354d
216 changed files with 4394 additions and 4262 deletions
|
@ -2,20 +2,20 @@
|
|||
- name: Gcloud | Archive | Ensure temp path exists
|
||||
ansible.builtin.file:
|
||||
path: "{{ gcloud_archive_path }}"
|
||||
state: "directory"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
|
||||
- name: Gcloud | Archive | Extract Cloud SDK archive
|
||||
ansible.builtin.unarchive:
|
||||
src: "{{ gcloud_archive_url }}"
|
||||
dest: "{{ gcloud_archive_path }}"
|
||||
remote_src: yes
|
||||
remote_src: true
|
||||
creates: "{{ gcloud_library_path }}"
|
||||
|
||||
- name: Gcloud | Archive | Link binaries to /usr/bin (like package install)
|
||||
ansible.builtin.file:
|
||||
src: "{{ gcloud_library_path }}/bin/{{ item }}"
|
||||
dest: "/usr/bin/{{ item }}"
|
||||
dest: /usr/bin/{{ item }}
|
||||
state: link
|
||||
loop:
|
||||
- bq
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# task file to configure bash completion for gcloud
|
||||
- name: Gcloud | Archive | Debian | Ensure bash completion is installed
|
||||
ansible.builtin.apt:
|
||||
name: "bash-completion"
|
||||
name: bash-completion
|
||||
register: task_result
|
||||
until: task_result is success
|
||||
retries: 10
|
||||
|
@ -25,7 +25,7 @@
|
|||
owner: root
|
||||
group: root
|
||||
state: directory
|
||||
mode: 0755
|
||||
mode: "0755"
|
||||
|
||||
- name: Gcloud | Archive | Link binaries to /usr/bin (like package install)
|
||||
ansible.builtin.file:
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
- name: Gcloud | Archive | Get gcloud_status
|
||||
ansible.builtin.debug:
|
||||
var: "gcloud_status"
|
||||
var: gcloud_status
|
||||
|
||||
- name: Gcloud | Archive | Set installed version if installation exists
|
||||
when: gcloud_status.stat.exists
|
||||
|
@ -30,11 +30,10 @@
|
|||
{{ gcloud_installed_version }} is already installed.
|
||||
|
||||
- name: Gcloud | Archive | Start installation
|
||||
when: gcloud_installed_version is undefined or
|
||||
gcloud_version is version(gcloud_installed_version, '>')
|
||||
when: gcloud_installed_version is undefined or gcloud_version is version(gcloud_installed_version, '>')
|
||||
ansible.builtin.include_tasks: archive_install.yml
|
||||
|
||||
- name: Gcloud | Debian | Install the google-cloud-sdk additional components # noqa 301
|
||||
- name: Gcloud | Debian | Install the google-cloud-sdk additional components # noqa no-changed-when
|
||||
ansible.builtin.command: gcloud components install {{ item }}
|
||||
register: gcloud_install_comp_status
|
||||
changed_when: "'All components are up to date.' not in gcloud_install_comp_status.stderr_lines"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue