Windows service management is a building block on the road to automating everything, and a key Ansible by Red Hat #WindowsAutomation use case.
Check out this (4-minute) demo video to see it in action!
Main demo playbook code:
--- - name: Stop a service hosts: all gather_facts: false tasks: - name: Stop spooler win_service: name: spooler state: stopped
--- - name: Start a service hosts: all gather_facts: false tasks: - name: Start spooler win_service: name: spooler start_mode: auto state: started
And you can download a free, 60-day evaluation of Ansible Tower via Red Hat’s site today: