Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible - install .NET Core 3.0 #12

Open
dermeister0 opened this issue Nov 18, 2019 · 0 comments
Open

Ansible - install .NET Core 3.0 #12

dermeister0 opened this issue Nov 18, 2019 · 0 comments

Comments

@dermeister0
Copy link
Member

- name: Install .NET Core Runtime
  win_chocolatey:
    name: dotnetcore-runtime
    version: 3.0.0
  become: yes
  register: runtime_result
- name: Install .NET Core Windows Server Hosting
  win_package:
    path: https://download.visualstudio.microsoft.com/download/pr/bf608208-38aa-4a40-9b71-ae3b251e110a/bc1cecb14f75cc83dcd4bbc3309f7086/dotnet-hosting-3.0.0-win.exe
    product_id: '{73F8C23D-8F4A-42E4-AC06-135159FFF9DB}'
    arguments: /install /quiet OPT_NO_RUNTIME=true
  register: hosting_result
- name: Restart server
  win_reboot:
  when: (runtime_result.rc is defined and runtime_result.rc == 3010) or (hosting_result.rc is defined and hosting_result.rc == 3010)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant