Coder Social home page Coder Social logo

ansible-win_dsc's Introduction

NOT MAINTAINED!!!

win_dsc has been merged to ansible core, so please do not submit issues/pull requests against this repo. Please update your playbooks to use win_dsc from Ansible core.

Ansible-win_dsc

Native DSC module for Ansible.

PowerShell 5.0, which is included in [Windows Management Framework 5.0][https://www.microsoft.com/en-us/download/details.aspx?id=50395] need to be installed on managed nodes. You can read more about Windows Management Framework 5.0 here.

Before using the win_dsc5 module, use the win_lcm5 module to set refresh mode to "Disabled" on the managed node.

Also, make sure the required DSC resources exist on the managed node.

If the DSC Resource need a Credential Object as Parameter do as follow:

Parametername_username
Parametername_password

Example xADDomain

   - name: Installing Domain
     win_dsc5:
       resource_name: "xADDomain"
       DomainName: "{{ads_domain_name}}"
       DomainAdministratorCredential_username: "Administrator"
       DomainAdministratorCredential_password: "{{ads_administrator_password}}"
       SafemodeAdministratorPassword_username: "Administrator"
       SafemodeAdministratorPassword_password: "{{ads_administrator_password}}"

If the DSC Resource need a String Array as Parameter do as follow:

Parametername: "string1,string2"

The commaseperated string will get split and a Powershell String Array will get Attached to the Property.

Example xSmbShare

   - name: Create Share
      win_dsc5:
        resource_name: "xSmbShare"
        Ensure: "Present"
        item_name: "MyShare"
        Path: "C:\\Data\\MyShare"
        Description: "This will be my Share"
        ReadAccess: "Domain Users"
        ChangeAccess: "User1,User2"
        FullAccess: "Domain Admins"

You should also check out a few other repos related to DSC and Ansible: https://github.com/trondhindenes/AnsibleDscModuleGenerator

https://github.com/trondhindenes/Ansible-Auto-Generated-Modules/tree/master

ansible-win_dsc's People

Contributors

trondhindenes avatar talcloudshare avatar dabondi avatar it-praktyk avatar adbertram avatar cwegener 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.