{"id":18171594,"url":"https://github.com/avishayil/ansible_test_kitchen_windows_role","last_synced_at":"2026-05-01T12:31:36.769Z","repository":{"id":72172218,"uuid":"160740479","full_name":"avishayil/ansible_test_kitchen_windows_role","owner":"avishayil","description":"Ansible Role for Windows hosts on AWS EC2 instances, Tested with Test-Kitchen and Pester","archived":false,"fork":false,"pushed_at":"2018-12-06T23:01:52.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-19T21:39:46.068Z","etag":null,"topics":["ansible","aws","devops","ec2","pester","role","roles","test-kitchen","testing"],"latest_commit_sha":null,"homepage":"https://medium.com/@avishayil/testing-ansible-roles-on-windows-hosts-using-test-kitchen-and-aws-b6aa69e8b29","language":"Python","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/avishayil.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":"2018-12-06T22:29:23.000Z","updated_at":"2018-12-06T23:05:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"5e1deacd-10ba-469e-ad36-39d55b61016a","html_url":"https://github.com/avishayil/ansible_test_kitchen_windows_role","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/avishayil/ansible_test_kitchen_windows_role","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avishayil%2Fansible_test_kitchen_windows_role","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avishayil%2Fansible_test_kitchen_windows_role/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avishayil%2Fansible_test_kitchen_windows_role/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avishayil%2Fansible_test_kitchen_windows_role/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avishayil","download_url":"https://codeload.github.com/avishayil/ansible_test_kitchen_windows_role/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avishayil%2Fansible_test_kitchen_windows_role/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32497810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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","aws","devops","ec2","pester","role","roles","test-kitchen","testing"],"created_at":"2024-11-02T15:09:21.336Z","updated_at":"2026-05-01T12:31:36.728Z","avatar_url":"https://github.com/avishayil.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nansible_test_kitchen_windows_role\n=========\nThis role is an example role for using `test-kitchen` on ansible roles that is meant to run on Windows hosts.\nWe use AWS EC2 to deploy the machines, \n\nRole Tasks\n--------------\n- **main** - Downloading and Installing Google Chrome on the target machine.\n\nRole Variables\n--------------\n\n- This role does not require any variables.\n\nOutputs\n------------\n- This role has no outputs.\n\nDependencies\n------------\n- This role does not have any dependencies.\n\nExample Playbook\n----------------\n\nIncluding an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:\n\n    # Assuming that you have some machines in 'jmeter' hosts group\n    - hosts: tag_kitchen_type_windows\n      gather_facts: no\n      tasks:      \n        - include_role:\n            name: ansible_test_kitchen_windows_role\n\nTesting\n-------\nWe use [Test-Kitchen](https://github.com/test-kitchen/test-kitchen) for testing ansible roles that was meant to run on Windows hosts.\n\n- Install [ChefDK](https://downloads.chef.io/chefdk)\n- Install `chef` gems:\n  * `$ chef gem install 'kitchen-ansible'`\n  * `$ chef gem install 'winrm'`\n  * `$ chef gem install 'winrm-fs'`\n  * `$ chef gem install 'kitchen-pester'`\n- Copy `.kitchen.yml` to `.kitchen.local.yml`, edit and override per your needs (instance profile, subnet, keypair, etc).\n- Run `$ kitchen create` and take note of the windows machine that was created.\n- Make sure that the following files are executable (by running `chmod +x file`):\n  * `$ chmod +x inventory/generate_inventory.sh`\n  * `$ chmod +x inventory/ec2.py`\n- Update the hosts file on the ansible inventory running `$ ./inventory/generate_inventory.sh` from the root of the repository\n- Run `$ kitchen converge` to run the default playbook from the provisioned ansible machine on the windows host.\n- Run `$ kitchen verify` for running pester tests.\n- Run `$ kitchen destroy` to terminate instances.\n\nTodo\n-------\n\n\nLicense\n-------\n\nBSD\n\nAuthor Information\n------------------\n\nAvishay Bar,\nCloud Initiatives team,\nCyberArk 2018","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favishayil%2Fansible_test_kitchen_windows_role","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favishayil%2Fansible_test_kitchen_windows_role","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favishayil%2Fansible_test_kitchen_windows_role/lists"}