{"id":16567238,"url":"https://github.com/justin-p/ansible-role-wincom","last_synced_at":"2025-08-02T15:41:22.683Z","repository":{"id":53124306,"uuid":"253846611","full_name":"justin-p/ansible-role-wincom","owner":"justin-p","description":"This role helps simplifying some basic common tasks for a windows host deployment with Ansible.","archived":false,"fork":false,"pushed_at":"2024-03-19T19:57:36.000Z","size":41,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-12T13:27:01.480Z","etag":null,"topics":["ansible","ansible-playbook","ansible-role","common","hacktoberfest","microsoft","windows"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justin-p.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-07T16:11:22.000Z","updated_at":"2024-03-18T09:28:02.000Z","dependencies_parsed_at":"2025-02-13T22:32:00.359Z","dependency_job_id":"6186dfde-053b-4588-810c-22c5187fd1b7","html_url":"https://github.com/justin-p/ansible-role-wincom","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/justin-p/ansible-role-wincom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justin-p%2Fansible-role-wincom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justin-p%2Fansible-role-wincom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justin-p%2Fansible-role-wincom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justin-p%2Fansible-role-wincom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justin-p","download_url":"https://codeload.github.com/justin-p/ansible-role-wincom/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justin-p%2Fansible-role-wincom/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268412788,"owners_count":24246538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-playbook","ansible-role","common","hacktoberfest","microsoft","windows"],"created_at":"2024-10-11T21:06:03.229Z","updated_at":"2025-08-02T15:41:22.618Z","avatar_url":"https://github.com/justin-p.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansible-role-wincom\n\n[![Ansible Role Name](https://img.shields.io/ansible/role/d/justin_p/wincom?style=flat-square\n)](https://galaxy.ansible.com/justin_p/wincom)\n[![Github Actions](https://img.shields.io/github/actions/workflow/status/justin-p/ansible-role-wincom/main.yml?label=Github%20Actions\u0026logo=github\u0026style=flat-square)](https://github.com/justin-p/ansible-role-wincom/actions)\n\nThis role helps simplifying some basis common tasks for a windows host deployment.\n\nWorks on\n\n- Server 2019\n- Server 2016\n- Server 2012R2\n- Server 2012\n\nNot tested (yet) on:\n\n- Server 2008R2\n- Server 2008-x64\n- Server 2008-x86\n\n## Requirements\n\n- `python3-winrm` (`pywinrm`) is needed for WinRM.\n\n## Role Variables\n\n`defaults/main.yml`\n\n| Variable                 | Description                                      | Default value                                                        |\n| :----------------------- | :----------------------------------------------- | :------------------------------------------------------------------- |\n| wincom_required_psmodule | Powershell modules that should be installed.     | [xPSDesiredStateConfiguration, NetworkingDsc, ComputerManagementDsc] |\n| wincom_service_delayed   | Services that should have delayed startup.       | [WinRM]                                                              |\n| wincom_power_plan        | The desired settings of the windows power plan.  | \"high performance\"                                                   |\n| wincom_dns_nics          | On what NIC should we update DNS.                | \"\\*\"                                                                 |\n| wincom_dns_server        | The DNS servers to configure on the NICs.        | [8.8.8.8, 8.8.4.4]                                                   |\n| wincom_hostname          | Change the hostname of the system to this value. | \"{{ inventory_hostname }}\"                                           |\n\n## Dependencies\n\n- WinRM on the windows host should configured for Ansible.\n- justin_p.posh5\n\n## Example Playbook\n\n    - hosts: windowshosts\n      roles:\n         - role: justin_p.posh5\n         - role: justin_p.wincom\n\n## Local Development\n\nThis role includes a Vagrantfile that will spin up a local Windows Server 2019 VM in Virtualbox.  \nAfter creating the VM it will automatically run our role.\n\n### Development requirements\n\n`pip3 install pywinrm`\n\n#### Usage\n\n- Run `vagrant up` to create a VM and run our playbook\n- Run `vagrant provision` to reapply our playbook\n- Run `vagrant destroy -f \u0026\u0026 vagrant up` to recreate the VM and run our playbook.\n- Run `vagrant destroy` to remove the VM.\n\n## License\n\nMIT\n\n## Authors\n\n- Justin Perdok ([@justin-p](https://github.com/justin-p/)), Orange Cyberdefense\n\n## Contributing\n\nFeel free to open issues, contribute and submit your Pull Requests. You can also ping me on Twitter ([@JustinPerdok](https://twitter.com/JustinPerdok)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustin-p%2Fansible-role-wincom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustin-p%2Fansible-role-wincom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustin-p%2Fansible-role-wincom/lists"}