Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/don-rumata/ansible-role-install-nuget
Ansible Role: Install NuGet
https://github.com/don-rumata/ansible-role-install-nuget
ansible ansible-role debian linux nuget ubuntu windows
Last synced: 7 days ago
JSON representation
Ansible Role: Install NuGet
- Host: GitHub
- URL: https://github.com/don-rumata/ansible-role-install-nuget
- Owner: don-rumata
- License: apache-2.0
- Created: 2024-02-17T10:03:39.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-02-17T11:24:08.000Z (9 months ago)
- Last Synced: 2024-10-16T11:20:57.021Z (21 days ago)
- Topics: ansible, ansible-role, debian, linux, nuget, ubuntu, windows
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Role: Install Nuget
[![License][license-image]][license-url]
Install [NuGet](https://www.nuget.org/) for Linux and Windows.
## Work on
### Ansible Galaxy style
```yaml
platforms:
- name: Ubuntu
versions:
- focal
- jammy
- name: Debian
version:
- buster
- bullseye
- bookworm
- name: Windows
version:
- 2008x64 (7 64bit)
- 2019 (10 64bit)
```## Requirements
min_ansible_version: 2.9
## Role Variables
```yaml
nuget_download_url: https://dist.nuget.org/win-x86-commandline/latest/nuget.exenuget_win_path_to_install: '{{ ansible_env.ProgramFiles }}\nuget'
nuget_linux_path_to_install: /usr/local/bin
```## Dependencies
### If you want deploy to Windows 7
Download and install [Windows Management Framework 5.1](https://www.microsoft.com/en-us/download/details.aspx?id=54616)
## HowTo
### How to install role
Over `ansible-galaxy`:
`TODO`.
Over `bash+git`:
```bash
mkdir -p "$HOME/.ansible/roles"
cd "$HOME/.ansible/roles"
git clone https://github.com/don-rumata/ansible-role-install-nuget don_rumata.ansible_role_install_nuget
```### Quick config WinRM for Windows
## Example Playbooks
### I
Install latest NuGet on Windows or Linux:
`install-nuget.yml`:
```yaml
- name: Install nuget
hosts: all
strategy: free
serial:
- "100%"
roles:
- don_rumata.ansible_role_install_nuget
tasks:
```### II
Install NuGet from intranet:
`install-nuget.yml`:
```yaml
- name: Install nuget
hosts: all
strategy: free
serial:
- "100%"
roles:
- role: ansible-role-install-nuget
nuget_download_url: http://10.10.10.10/soft/nuget/nuget.exe
tasks:
```## License
Apache License, Version 2.0
## Author Information
[don Rumata](https://github.com/don-rumata)
## TODO
- Add repo mono project.
- Install over `ansible galaxy`.[license-image]: https://img.shields.io/github/license/don-rumata/ansible-role-install-nuget.svg
[license-url]: https://opensource.org/licenses/Apache-2.0