Install NuGet for Linux and Windows.
platforms:
- name: Ubuntu
versions:
- focal
- jammy
- name: Debian
version:
- buster
- bullseye
- bookworm
- name: Windows
version:
- 2008x64 (7 64bit)
- 2019 (10 64bit)
min_ansible_version: 2.9
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
Download and install Windows Management Framework 5.1
Over ansible-galaxy
:
TODO
.
Over bash+git
:
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
https://ru.stackoverflow.com/a/949971/191416
Install latest NuGet on Windows or Linux:
install-nuget.yml
:
- name: Install nuget
hosts: all
strategy: free
serial:
- "100%"
roles:
- don_rumata.ansible_role_install_nuget
tasks:
Install NuGet from intranet:
install-nuget.yml
:
- 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:
Apache License, Version 2.0
- Add repo mono project.
- Install over
ansible galaxy
.