This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Install Systemd units using Ansible | |
Handles unit restarting and systemd daemon reloading when the unit changes. | |
Also stops the unit correctly when uninstalled | |
In your playbook put this file to library/systemdunit.py and make sure the | |
server has python-sh package installed |