Giter Site home page Giter Site logo

vuluchalasarathbabu / ansible-role-dotnet452 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from deekayen/ansible-role-dotnet452

0.0 0.0 0.0 16 KB

Install (or uninstall) Microsoft .NET Framework 4.5.2 using Ansible.

Home Page: https://galaxy.ansible.com/deekayen/dotnet452/

License: BSD 3-Clause "New" or "Revised" License

ansible-role-dotnet452's Introduction

.NET Framework 4.5.2

CI Project Status: Inactive โ€“ The project has reached a stable, usable state but is no longer being actively developed; support/maintenance will be provided as time allows.

Install (or uninstall) Microsoft .NET Framework 4.5.2 on Windows.

Requirements

The target Windows machines must have whitelisted Internet access to download the .NET installer from download.microsoft.com.

Role Variables

By default, this role installs the .NET Framework. Toggling the dotnet452_uninstall variable from false to true will uninstall the framework if it exists.

Dependencies

None.

Example Playbook

- hosts: servers
  roles:
     - { role: deekayen.dotnet452, dotnet452_uninstall: false }

Example Install

TASK [deekayen.dotnet452 : Install Microsoft .NET Framework 4.5.2.] ************
ok: [10.0.0.100] => {"changed": false, "name": "https://download.microsoft.com/download/E/2/1/E21644B5-2DF2-47C2-91BD-63C560427900/NDP452-KB2901907-x86-x64-AllOS-ENU.exe"}

TASK [deekayen.dotnet452 : debug] **********************************************
ok: [10.0.0.100] => {
    "dotnet452_exe": {
        "changed": false,
        "name": "https://download.microsoft.com/download/E/2/1/E21644B5-2DF2-47C2-91BD-63C560427900/NDP452-KB2901907-x86-x64-AllOS-ENU.exe"
    }
}

Because the uninstall task uses Ansible's raw module, the play output will always report ok status instead of changed. The playbook may also complete before the msiexec process has completely finished uninstalling the framework.

Windows 2008R2

Microsoft .NET Framework must exist already on Windows 2008R2 for Ansible to connect and invoke Powershell. This module will confirm that the desired version is installed.

Example Uninstall

TASK [deekayen.dotnet452 : Uninstall Microsoft .NET Framework 4.5.2.] **********
ok: [10.0.0.100] => {"changed": false, "rc": 0, "stderr": "", "stdout": "", "stdout_lines": []}

TASK [deekayen.dotnet452 : debug] **********************************************
ok: [10.0.0.100] => {
    "dotnet452_removed": {
        "changed": false,
        "rc": 0,
        "stderr": "",
        "stdout": "",
        "stdout_lines": []
    }
}

Caveat

Uninstalling .NET Framework on Windows 2008R2 will break Ansible's ability to invoke Powershell. You won't be able to reconnect with Ansible to the remote host until you re-install .NET Framework by some other means than this role.

License

BSD

ansible-role-dotnet452's People

Contributors

deekayen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.