HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //lib/python3.9/site-packages/ansible_collections/google/cloud/roles/gcloud/tasks/archive/main.yml
---
# tasks to install gcloud via archive
- name: Gcloud | Archive | Look for existing Google Cloud SDK installation
  ansible.builtin.stat:
    path: "{{ gcloud_archive_path }}/google-cloud-sdk/VERSION"
  register: gcloud_status

- name: Gcloud | Archive | Get gcloud_status
  ansible.builtin.debug:
    var: "gcloud_status"

- name: Gcloud | Archive | Set installed version if installation exists
  when: gcloud_status.stat.exists
  block:
    - name: Gcloud | Archive | Importing contents of ./google-cloud-sdk/VERSION in {{ gcloud_archive_path }}
      ansible.builtin.slurp:
        src: "{{ gcloud_archive_path }}/google-cloud-sdk/VERSION"
      register: gcloud_installed_version_data
    - name: Gcloud | Archive | Setting the gcloud_installed_version variable/fact
      ansible.builtin.set_fact:
        gcloud_installed_version: "{{ (gcloud_installed_version_data.content | b64decode | trim) }}"
    - name: Gcloud | Archive | get the gcloud_installed_version
      ansible.builtin.debug:
        msg: "google-cloud-sdk: {{ gcloud_installed_version }} is installed"
    - name: Gcloud | Archive | Version already installed
      when: gcloud_version == gcloud_installed_version
      ansible.builtin.debug:
        msg: >-
          Skipping installation of google-cloud-sdk version {{ gcloud_version }} when
          {{ 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, '>')
  ansible.builtin.include_tasks: archive_install.yml

- name: Gcloud | Debian | Install the google-cloud-sdk additional components # noqa 301
  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"
  loop: "{{ gcloud_additional_components }}"