halida.cmd_service
ansible-cmd-service
Systemd user level service for one command.
Usage
Clone to your roles folder as cmd-service:
git submodule add [email protected]:halida/ansible-cmd-service.git roles/cmd-service
Then in your playbooks file:
- import_role:
name: cmd-service
vars:
name: 'python-http-server'
path: '/tmp/http_shared'
cmd: "/usr/bin/python -m SimpleHTTPServer 8888 "
Start service:
systemctl --user start python-http-server
Install
ansible-galaxy install halida.cmd_serviceLicense
Unknown
Downloads
92
Owner
