Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/labasubagia/ansible-role-gcloud
Ansible role to install gcloud CLi
https://github.com/labasubagia/ansible-role-gcloud
ansible ansible-role cli google-cloud
Last synced: about 2 months ago
JSON representation
Ansible role to install gcloud CLi
- Host: GitHub
- URL: https://github.com/labasubagia/ansible-role-gcloud
- Owner: labasubagia
- License: mit
- Created: 2024-07-30T05:01:57.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-30T08:47:10.000Z (5 months ago)
- Last Synced: 2024-10-20T11:56:57.428Z (3 months ago)
- Topics: ansible, ansible-role, cli, google-cloud
- Homepage: https://galaxy.ansible.com/ui/standalone/roles/labasubagia/gcloud/
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Google Cloud CLI
=========Ansible role to install [Google Cloud CLI](https://cloud.google.com/sdk/docs/install) linux
> Recommended to install inside home user directory (by official documentation) as non-root
Requirements
------------
- Ansible Core >= 2.16
- Tested Linux Distribution
- Debian 12
- Ubuntu 24.04
- Fedora 40> Note: Other distributions likely to work but not been tested
Role Variables
--------------The following variables will change the behavior of this role (default values are shown below):
```yaml
## google recommends to install gcloud sdk in user directory, not as root
gcloud_install_dir: "{{ ansible_env.HOME }}"
gcloud_additional_components: []
gcloud_state: present # present/absent# For this file you need to make sure it is exists
# Otherwise it will be skipped
gcloud_fish_config: "{{ ansible_env.HOME }}/.config/fish/config.fish"
gcloud_bash_config: "{{ ansible_env.HOME }}/.bashrc"
gcloud_zsh_config: "{{ ansible_env.HOME }}/.zshrc"
```Example Playbook
----------------
```yaml
- hosts: servers
roles:
- role: labasubagia.gcloud
vars:
gcloud_additional_components:
- gke-gcloud-auth-plugin
- kubectl
```License
-------MIT
Author Information
------------------[Laba Subagia](https://github.com/labasubagia)