This repository hosts the infra.windows_ops Ansible Collection.
The collection includes a variety of Ansible roles to help automate the management of resources on Microsoft Windows.
This collection has been tested against following Ansible versions: >=2.18.0.
Click on the name of a plugin or module to view that content's documentation:
| Name | Description |
|---|---|
| infra.windows_ops.windows_manage_iis | A role to manage IIS Web Server. |
| infra.windows_ops.windows_manage_service | A role to manage Windows Services. |
| infra.windows_ops.windows_manage_updates | A role to manage Windows Updates. |
| Name | Description |
|---|---|
| infra.windows_ops.windows_manage_cis | A role to enforce CIS Microsoft Windows Server 2022 Benchmark compliance. |
| infra.windows_ops.windows_manage_stig | A role to enforce DISA STIG Windows Server 2022 compliance. |
To consume this Validated Content from Automation Hub, please ensure that you add the following lines to your ansible.cfg file.
[galaxy]
server_list = automation_hub
[galaxy_server.automation_hub]
url=https://cloud.redhat.com/api/automation-hub/
auth_url=https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token
token=<SuperSecretToken>
The token can be obtained from the Automation Hub Web UI.
Once the above steps are done, you can run the following command to install the collection.
ansible-galaxy collection install infra.windows_ops
Once installed, you can reference the infra.windows_ops collection content by its fully qualified collection name (FQCN), for example:
- hosts: all
tasks:
- name: Create IIS Web Server
ansible.builtin.include_role:
name: infra.windows_ops.windows_manage_iis
vars:
windows_manage_iis_operation: create
windows_manage_iis_name: MyWebServer
windows_manage_iis_path: c:\\sites\MyWebServer
windows_manage_iis_port: 80
windows_manage_iis_test_message: "This is my test message for MyWebServer"- Ansible Using collections for more details.
- This collection is tested using GitHub Actions. To know more about CI, refer to CI.md.
- For more information about testing and development, refer to CONTRIBUTING.md
GNU General Public License v3.0 or later
See LICENCE to see the full text.