{"id":15878872,"url":"https://github.com/darkwizard242/ansible-role-gcloudsdk","last_synced_at":"2026-01-24T13:37:36.586Z","repository":{"id":43180667,"uuid":"238076366","full_name":"darkwizard242/ansible-role-gcloudsdk","owner":"darkwizard242","description":"Ansible role for Google Cloud SDK (cli). Available on Ansible Galaxy.","archived":false,"fork":false,"pushed_at":"2024-06-21T21:10:46.000Z","size":41,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-28T06:00:50.064Z","etag":null,"topics":["ansible","ansible-galaxy","ansible-role","cli","google-cloud","google-cloud-sdk","linux","system"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/darkwizard242/gcloudsdk","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/darkwizard242.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-03T22:38:34.000Z","updated_at":"2024-06-21T21:10:37.000Z","dependencies_parsed_at":"2024-04-11T23:46:45.045Z","dependency_job_id":null,"html_url":"https://github.com/darkwizard242/ansible-role-gcloudsdk","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-gcloudsdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-gcloudsdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-gcloudsdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-gcloudsdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darkwizard242","download_url":"https://codeload.github.com/darkwizard242/ansible-role-gcloudsdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239565649,"owners_count":19660154,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-galaxy","ansible-role","cli","google-cloud","google-cloud-sdk","linux","system"],"created_at":"2024-10-06T02:42:10.732Z","updated_at":"2025-11-09T01:30:36.225Z","avatar_url":"https://github.com/darkwizard242.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![build-test](https://github.com/darkwizard242/ansible-role-gcloudsdk/workflows/build-and-test/badge.svg?branch=master)](https://github.com/darkwizard242/ansible-role-gcloudsdk/actions?query=workflow%3Abuild-and-test) [![release](https://github.com/darkwizard242/ansible-role-gcloudsdk/workflows/release/badge.svg)](https://github.com/darkwizard242/ansible-role-gcloudsdk/actions?query=workflow%3Arelease) ![Ansible Role](https://img.shields.io/ansible/role/d/darkwizard242/gcloudsdk) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-gcloudsdk\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=ansible-role-gcloudsdk) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-gcloudsdk\u0026metric=reliability_rating)](https://sonarcloud.io/dashboard?id=ansible-role-gcloudsdk) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-gcloudsdk\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=ansible-role-gcloudsdk) ![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/darkwizard242/ansible-role-gcloudsdk?label=release) ![GitHub repo size](https://img.shields.io/github/repo-size/darkwizard242/ansible-role-gcloudsdk?color=orange\u0026style=flat-square)\n\n# Ansible Role: gcloudsdk\n\nRole to install (_by default_) [google-cloud-sdk](https://cloud.google.com/sdk) package for Debian based and EL based systems or uninstall (_if passed as var_) on **Debian** based and **EL** based systems.\n\n## Requirements\n\nNone.\n\n## Role Variables\n\nAvailable variables are listed below (located in `defaults/main.yml`):\n\n### Variables List:\n\n```yaml\ngcloudsdk_pre_reqs_debian:\n  - apt-transport-https\n  - ca-certificates\n  - lsb-release\n  - gnupg\ngcloudsdk_pre_reqs_debian_desired_state: present\ngcloudsdk_app_name: google-cloud-cli\ngcloudsdk_desired_state: present\ngcloudsdk_debian_gpg_key: https://packages.cloud.google.com/apt/doc/apt-key.gpg\ngcloudsdk_repo_debian: \"deb https://packages.cloud.google.com/apt cloud-sdk main\"\ngcloudsdk_repo_debian_filename: google-cloud-sdk\ngcloudsdk_el_gpg_yum_key: https://packages.cloud.google.com/yum/doc/yum-key.gpg\ngcloudsdk_el_gpg_rpm_key: https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg\ngcloudsdk_repo_el_name: google-cloud-sdk\ngcloudsdk_repo_el_description: Google Cloud SDK\ngcloudsdk_repo_el: https://packages.cloud.google.com/yum/repos/cloud-sdk-el7-x86_64\ngcloudsdk_repo_el_filename: google-cloud-sdk\ngcloudsdk_repo_el_repogpgcheck: yes\ngcloudsdk_repo_el_gpgcheck: yes\ngcloudsdk_repo_el_enabled: yes\ngcloudsdk_repo_desired_state: present\n```\n\n### Variables table:\n\nVariable                                | Description\n--------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\ngcloudsdk_pre_reqs_debian               | Package required by Azure CLI on Debain based systems.\ngcloudsdk_pre_reqs_debian_desired_state | State of the gcloudsdk_pre_reqs_debian_desired_state packages. Whether to install, verify if available or to uninstall (i.e. ansible apt module values: `present`, `latest`, or `absent`)\ngcloudsdk_app_name                      | Name of Azure CLI package i.e. `google-cloud-cli`\ngcloudsdk_desired_state                 | State of the gcloudsdk_app_name package (i.e. `google-cloud-cli` package itself.). Whether to install, verify if available or to uninstall (i.e. ansible apt module values: `present`, `latest`, or `absent`)\ngcloudsdk_debian_gpg_key                | Azure CLI GPG required on Debian based systems.\ngcloudsdk_el_gpg_yum_key                | Azure CLI GPG (yum) required on EL based systems.\ngcloudsdk_el_gpg_rpm_key                | Azure CLI GPG (rpm) required on EL based systems.\ngcloudsdk_repo_debian                   | Repository URL for Debian based systems.\ngcloudsdk_repo_debian_filename          | Name of the repository file that will be stored at `/etc/apt/sources.list.d/` on Debian based systems. Defaults to `google-cloud-sdk` .\ngcloudsdk_repo_el_name                  | Repository name for Azure CLI on EL based systems.\ngcloudsdk_repo_el_description           | Description to be added in EL based repository file for Azure CLI.\ngcloudsdk_repo_el                       | Repository `baseurl` for Azure CLI on EL based systems.\ngcloudsdk_repo_el_repogpgcheck          | Boolean operation for performing gpg check against atom's repository gpg. Can either be **yes** or **no**.\ngcloudsdk_repo_el_gpgcheck              | Boolean for whether to perform gpg check against Azure CLI on EL based systems.\ngcloudsdk_repo_el_enabled               | Boolean for whether to set Azure CLI repo as 'enabled' on EL based systems.\ngcloudsdk_repo_desired_state            | `present` indicates creating the repository file if it doesn't exist on Debian or EL based systems. Alternative is `absent` (not recommended as it will prevent from installation of **google-cloud-cli** pacakge).\ngcloudsdk_repo_el_filename              | Name of the repository file that will be stored at `/etc/yum/sources.list.d/` on EL based systems. Defaults to `google-cloud-sdk` .\n\n## Dependencies\n\nNone\n\n## Example Playbook\n\nFor default behaviour of role (i.e. installation of **google-cloud-cli** package) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.gcloudsdk\n```\n\nFor customizing behavior of role (i.e. installation of latest **google-cloud-cli** package) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.gcloudsdk\n  vars:\n    gcloudsdk_desired_state: latest\n```\n\nFor customizing behavior of role (i.e. un-installation of **google-cloud-cli** package) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.gcloudsdk\n  vars:\n    gcloudsdk_desired_state: absent\n```\n\n## License\n\n[MIT](https://github.com/darkwizard242/ansible-role-gcloudsdk/blob/master/LICENSE)\n\n## Author Information\n\nThis role was created by [Ali Muhammad](https://www.alimuhammad.dev/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkwizard242%2Fansible-role-gcloudsdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkwizard242%2Fansible-role-gcloudsdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkwizard242%2Fansible-role-gcloudsdk/lists"}