Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antmelekhin/ansible-role-microsoft-repository
An Ansible role that adds the Microsoft repository to Linux distributions and installs packages from it.
https://github.com/antmelekhin/ansible-role-microsoft-repository
ansible ansible-role debian microsoft-repository packages rhel
Last synced: about 1 month ago
JSON representation
An Ansible role that adds the Microsoft repository to Linux distributions and installs packages from it.
- Host: GitHub
- URL: https://github.com/antmelekhin/ansible-role-microsoft-repository
- Owner: antmelekhin
- License: mit
- Created: 2022-01-14T13:54:13.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-13T09:43:58.000Z (4 months ago)
- Last Synced: 2024-09-13T23:23:47.632Z (4 months ago)
- Topics: ansible, ansible-role, debian, microsoft-repository, packages, rhel
- Language: Jinja
- Homepage: https://galaxy.ansible.com/ui/standalone/roles/antmelekhin/microsoft_repository/
- Size: 77.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Microsoft Repository
====================An Ansible role that adds the [Microsoft repository](https://packages.microsoft.com) to Linux distributions and installs packages from it.
Upgrade to 2.x
--------------Since version 2.0.0, the variable `microsoft_repository_dirs_list` has changed to `microsoft_repository_enable_prod_repository` and `microsoft_repository_additional_directories`.
Requirements
------------- Supported version of Ansible: 2.12 and highter.
- Supported platforms:
- Debian
- 10
- 11
- RHEL
- 7
- 8
- 9
- Ubuntu
- 18.04
- 20.04
- 22.04Role Variables
--------------All variables that can be overridden are stored in the [defaults/main.yml](https://github.com/antmelekhin/ansible-role-microsoft-repository/blob/main/defaults/main.yml) file.
Please refer to the [meta/argument_specs.yml](https://github.com/antmelekhin/ansible-role-microsoft-repository/blob/main/meta/argument_specs.yml) file for a description of the available variables.
Similarly, descriptions and defaults for preset variables can be found in the [vars/main.yml](https://github.com/antmelekhin/ansible-role-microsoft-repository/blob/main/vars/main.yml) file.Dependencies
------------None.
Example Playbook
----------------Add the `Microsoft Prod` repository:
```yaml
---
- name: 'Setup Microsoft repository'
hosts: allroles:
- role: antmelekhin.microsoft_repository
```Add the `Microsoft Prod` repository and install `dotnet-sdk-3.1` and `powershell` packages:
```yaml
---
- name: 'Setup Microsoft repository'
hosts: allroles:
- role: antmelekhin.microsoft_repository
microsoft_repository_packages:
- 'dotnet-sdk-3.1'
- 'powershell'
```Add the `Microsoft Azure CLI` repository and install the azure-cli package:
```yaml
---
- name: 'Setup Microsoft repository'
hosts: allroles:
- role: antmelekhin.microsoft_repository
microsoft_repository_additional_directories:
- 'azure-cli'
microsoft_repository_packages:
- 'azure-cli'
```License
-------MIT
Author Information
------------------Melekhin Anton.