Skip to content

Instantly share code, notes, and snippets.

@ru-ka
Last active September 13, 2024 12:27
Show Gist options
  • Select an option

  • Save ru-ka/f7ecd359abad7229a6f2f1cce567d057 to your computer and use it in GitHub Desktop.

Select an option

Save ru-ka/f7ecd359abad7229a6f2f1cce567d057 to your computer and use it in GitHub Desktop.
Initial dotnet DEV enviroment setup using an ansible script
---
- name: Install .NET tools and templates
hosts: localhost
become: no
tasks:
- name: Install wasm-tools workload
ansible.builtin.shell: dotnet workload install wasm-tools
- name: Install Aspire workload
ansible.builtin.shell: dotnet workload install aspire
- name: Install dotnet-ef tool globally
ansible.builtin.shell: dotnet tool install --global dotnet-ef
- name: Install Peachpie templates
ansible.builtin.shell: dotnet new install "Peachpie.Templates::*"
- name: Install Avalonia templates
ansible.builtin.shell: dotnet new install Avalonia.Templates
- name: Install TryPhotino VSCode project templates
ansible.builtin.shell: dotnet new install TryPhotino.VSCode.Project.Templates
- name: Install Microsoft Kiota
ansible.builtin.shell: dotnet tool install --global Microsoft.OpenApi.Kiota
- name: Install Masstransit project templates
ansible.builtin.shell: dotnet new install MassTransit.Templates
- name: Install Silk.NET project templates
ansible.builtin.shell:: dotnet new install Silk.NET.Templates
- nane: Install and configure Akka.net tools and templates
block:
- name: Install Petabridge.cmd tool globally
ansible.builtin.shell: dotnet tool install -g pbm
- name: Install Akka.NET project templates
ansible.builtin.shell: dotnet new install "Akka.Templates::*"
- name: Install and configure Uno tools and templates
block:
- name: Install uno.check tool globally
ansible.builtin.shell: dotnet tool install -g uno.check
- name: Install Uno templates
ansible.builtin.shell: dotnet new install Uno.Templates
- name: Install and configure MonoGame tools and templates
block:
- name: Install MonoGame templates
ansible.builtin.shell: dotnet new install MonoGame.Templates.CSharp
- name: Download and run MonoGame setup script
ansible.builtin.shell: wget -qO- https://monogame.net/downloads/net6_mgfxc_wine_setup.sh | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment