Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.exe

nuget_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