{"id":14064474,"url":"https://github.com/sharepointoscar/Windows-Ansible","last_synced_at":"2025-07-29T18:32:29.422Z","repository":{"id":145630899,"uuid":"89026731","full_name":"sharepointoscar/Windows-Ansible","owner":"sharepointoscar","description":"An example of using Ansible as a Provisioner within a Vagrant file and using ServerSpec for tests.","archived":false,"fork":false,"pushed_at":"2017-05-21T06:05:50.000Z","size":16676,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-30T23:32:01.945Z","etag":null,"topics":["ansible","vagrant","windows"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sharepointoscar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-04-21T21:57:40.000Z","updated_at":"2022-11-21T12:45:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"a9802ea3-79d1-4917-bf6a-bacb722d181d","html_url":"https://github.com/sharepointoscar/Windows-Ansible","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharepointoscar%2FWindows-Ansible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharepointoscar%2FWindows-Ansible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharepointoscar%2FWindows-Ansible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharepointoscar%2FWindows-Ansible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sharepointoscar","download_url":"https://codeload.github.com/sharepointoscar/Windows-Ansible/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228040641,"owners_count":17860211,"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","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","vagrant","windows"],"created_at":"2024-08-13T07:03:53.141Z","updated_at":"2024-12-04T03:30:51.834Z","avatar_url":"https://github.com/sharepointoscar.png","language":"PowerShell","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"readme":"\n# Ansible Examples on Windows Server 2016\n----------------\n\nThis repository demonstrates:\n- Using Packer to build a machine with specific configuration\n- Using Vagrant to further configure the machine\n- Using ServerSpec to run tests against your machine to ensure desired state configuration is in place\n\n### About ServerSpec\n\n\u003eWith Serverspec, you can write RSpec tests for checking your servers are configured correctly.\n\n\u003eServerspec tests your servers’ actual state by executing command locally, via SSH, via WinRM, via Docker API and so on. So you don’t need to install any agent softwares on your servers and can use any configuration management tools, Puppet, Ansible, CFEngine, Itamae and so on.\n\nBut the true aim of Serverspec is to help refactoring infrastructure code.\n\n## Build the Windows 2016 Box\nTo build the Windows Server, we use Packer.  There are three providers in the vagrant template `vmware-fusion` `vmware-workstation` and `virtualbox-iso`\n\nHere is how you build the virtualbox box using packer by specifying the template json file.\n\n```bash\n  packer build --only=virtualbox-iso windows_2016.json\n```\n\n## Running Tests\nFirst, **vagrant-serverspec** is required, you can install it by executing `vagrant plugin install vagrant-serverspec`\n\nNext, execute `vagrant up` and the since we added the _serverspec_ provisioner within our vagrantfile like so\n\n```bash\nconfig.vm.provision :serverspec do |spec|\n    spec.pattern = 'spec/oscar-ansible-windows2016/check_features_spec.rb'\nend\n```\nour tests will run at the time the VM is spinning up.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharepointoscar%2FWindows-Ansible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharepointoscar%2FWindows-Ansible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharepointoscar%2FWindows-Ansible/lists"}