{"id":15878951,"url":"https://github.com/darkwizard242/ansible-role-azurecli","last_synced_at":"2026-03-03T02:36:35.907Z","repository":{"id":44623720,"uuid":"235616346","full_name":"darkwizard242/ansible-role-azurecli","owner":"darkwizard242","description":"Ansible role for Azure CLI. Available on Ansible Galaxy.","archived":false,"fork":false,"pushed_at":"2024-06-20T17:41:07.000Z","size":35,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-07T02:42:21.011Z","etag":null,"topics":["ansible","ansible-galaxy","ansible-role","azure","azure-cli","cloud-computing","linux"],"latest_commit_sha":null,"homepage":"","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-01-22T16:35:33.000Z","updated_at":"2024-06-20T17:40:55.000Z","dependencies_parsed_at":"2024-06-21T10:50:47.633Z","dependency_job_id":null,"html_url":"https://github.com/darkwizard242/ansible-role-azurecli","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-azurecli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-azurecli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-azurecli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-azurecli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darkwizard242","download_url":"https://codeload.github.com/darkwizard242/ansible-role-azurecli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221661154,"owners_count":16859488,"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","azure","azure-cli","cloud-computing","linux"],"created_at":"2024-10-06T02:42:28.584Z","updated_at":"2026-03-03T02:36:35.860Z","avatar_url":"https://github.com/darkwizard242.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![build-test](https://github.com/darkwizard242/ansible-role-azurecli/workflows/build-and-test/badge.svg?branch=master)](https://github.com/darkwizard242/ansible-role-azurecli/actions?query=workflow%3Abuild-and-test) [![release](https://github.com/darkwizard242/ansible-role-azurecli/workflows/release/badge.svg)](https://github.com/darkwizard242/ansible-role-azurecli/actions?query=workflow%3Arelease) ![Ansible Role](https://img.shields.io/ansible/role/d/darkwizard242/azurecli) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-azurecli\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=ansible-role-azurecli) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-azurecli\u0026metric=reliability_rating)](https://sonarcloud.io/dashboard?id=ansible-role-azurecli) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-azurecli\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=ansible-role-azurecli) ![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/darkwizard242/ansible-role-azurecli?label=release) ![GitHub repo size](https://img.shields.io/github/repo-size/darkwizard242/ansible-role-azurecli?color=orange\u0026style=flat-square)\n\n# Ansible Role: azurecli\n\nRole to install (_by default_) [azure-cli](https://github.com/Azure/azure-cli) 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\nazurecli_pre_reqs_debian:\n  - apt-transport-https\n  - curl\n  - ca-certificates\n  - lsb-release\n  - gnupg\nazurecli_pre_reqs_debian_desired_state: present\nazurecli_app_name: azure-cli\nazurecli_desired_state: present\nazurecli_debian_gpg_key: https://packages.microsoft.com/keys/microsoft.asc\nazurecli_repo_debian: \"deb [arch={{ ansible_architecture }}] https://packages.microsoft.com/repos/azure-cli/ {{ ansible_lsb['codename'] }} main\"\nazurecli_repo_debian_when_x86_64: \"deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ {{ ansible_lsb['codename'] }} main\"\nazurecli_repo_debian_filename: \"{{ azurecli_app_name }}\"\nazurecli_el_gpg_key: https://packages.microsoft.com/keys/microsoft.asc\nazurecli_repo_el_name: azure-cli\nazurecli_repo_el_description: Azure CLI\nazurecli_repo_el: https://packages.microsoft.com/yumrepos/azure-cli\nazurecli_repo_el_filename: \"{{ azurecli_app_name }}\"\nazurecli_repo_el_gpgcheck: yes\nazurecli_repo_el_enabled: yes\nazurecli_repo_desired_state: present\n```\n\n### Variables table:\n\nVariable                               | Description\n-------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\nazurecli_pre_reqs_debian               | Package required by Azure CLI on Debain based systems.\nazurecli_pre_reqs_debian_desired_state | State of the azurecli_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`)\nazurecli_app_name                      | Name of Azure CLI package i.e. `azure-cli`\nazurecli_desired_state                 | State of the azurecli_app_name package (i.e. `azure-cli` package itself.). Whether to install, verify if available or to uninstall (i.e. ansible apt module values: `present`, `latest`, or `absent`)\nazurecli_debian_gpg_key                | Azure CLI GPG required on Debian based systems.\nazurecli_el_gpg_key                    | Azure CLI GPG required on EL based systems.\nazurecli_repo_debian                   | Repository URL for Debian based systems. Utilized facts such as `ansible_architecture`.\nazurecli_repo_debian_when_x86_64       | This variable is used only against systems that are x86_64 type as the architecture is overridden to `arch=amd64` as per Azure CLI's Installation steps.\nazurecli_repo_debian_filename          | Name of the repository file that will be stored at `/etc/apt/sources.list.d/` on Debian based systems.\nazurecli_repo_el_name                  | Repository name for Azure CLI on EL based systems.\nazurecli_repo_el_description           | Description to be added in EL based repository file for Azure CLI.\nazurecli_repo_el                       | Repository `baseurl` for Azure CLI on EL based systems.\nazurecli_repo_el_gpgcheck              | Boolean for whether to perform gpg check against Azure CLI on EL based systems.\nazurecli_repo_el_enabled               | Boolean for whether to set Azure CLI repo as 'enabled' on EL based systems.\nazurecli_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 **azure-cli** pacakge).\nazurecli_repo_el_filename              | Name of the repository file that will be stored at `/etc/yum/sources.list.d/` on EL based systems.\n\n## Dependencies\n\nNone\n\n## Example Playbook\n\nFor default behaviour of role (i.e. installation of **azure-cli** package) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.azurecli\n```\n\nFor customizing behavior of role (i.e. installation of latest **azure-cli** package) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.azurecli\n  vars:\n    azurecli_desired_state: latest\n```\n\nFor customizing behavior of role (i.e. un-installation of **azure-cli** package) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.azurecli\n  vars:\n    azurecli_desired_state: absent\n```\n\n## License\n\n[MIT](https://github.com/darkwizard242/ansible-role-azurecli/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-azurecli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkwizard242%2Fansible-role-azurecli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkwizard242%2Fansible-role-azurecli/lists"}