Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/juju4/ansible-win-services

Configure Windows services with ansible
https://github.com/juju4/ansible-win-services

Last synced: about 1 month ago
JSON representation

Configure Windows services with ansible

Awesome Lists containing this project

README

        

[![Actions Status - Master](https://github.com/juju4/ansible-win-services/workflows/lint/badge.svg)](https://github.com/juju4/ansible-win-services/actions?query=branch%3Amaster)
[![Actions Status - Devel](https://github.com/juju4/ansible-win-services/workflows/lint/badge.svg?branch=devel)](https://github.com/juju4/ansible-win-services/actions?query=branch%3Adevel)
[![Appveyor - Master](https://ci.appveyor.com/api/projects/status/q5xmo6e1ijns8t05/branch/master?svg=true)](https://ci.appveyor.com/project/juju4/ansible-win-services/branch/master)
[![Appveyor - Devel](https://ci.appveyor.com/api/projects/status/q5xmo6e1ijns8t05/branch/devel?svg=true)](https://ci.appveyor.com/project/juju4/ansible-win-services/branch/devel)

# Windows services ansible role

Ansible role to setup services on Windows system.

## Requirements & Dependencies

### Ansible
It was tested on the following versions:
* 2.3
* 2.4
* 2.5b2
* 4.10.0
* 5.3.0

### Operating systems

Tested in Appveyor

## Example Playbook

Just include this role in your list.
For example

```
- host: all
roles:
- juju4.win_services
```

Run
```
$ ansible -i inventory -m win_ping win --ask-pass
$ ansible-playbook -i inventory --limit win site.yml
```

## Variables

See defaults/main.yml for full scope

## Continuous integration

This role has a travis basic test (for github, syntax check only), Appveyor test and a Vagrantfile (test/vagrant).

```
$ cd /path/to/roles/juju4.win_services/test/vagrant
$ vagrant up
$ vagrant provision
$ vagrant destroy
$ ansible -i .vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory -m win_ping -e ansible_winrm_server_cert_validation=ignore -e ansible_ssh_port=55986 all
```

## Troubleshooting & Known issues

## FAQ

Reference links
* http://www.marksanborn.net/howto/turn-off-unnecessary-windows-services/
* http://www.7tutorials.com/which-windows-services-are-safe-disable-when
* http://www.blackviper.com/service-configurations/black-vipers-windows-10-service-configurations/
* https://blogs.technet.microsoft.com/secguide/2017/05/29/guidance-on-disabling-system-services-on-windows-server-2016-with-desktop-experience/

## License

BSD 2-clause