Solard resource with run action (start-stop-daemon)

This commit is contained in:
Jedrzej Nowak 2015-09-28 18:04:11 +02:00
parent e4f65416ae
commit 551b6868c2
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,5 @@
- hosts: [{{ host }}]
sudo: yes
tasks:
- shell: pip install -e /vagrant/solard
- shell: start-stop-daemon -b --name solard --start --make-pidfile --pidfile /tmp/solard.pid --chdir /vagrant/solard --exec /usr/bin/python -- solard/tcp_server.py

View File

@ -0,0 +1,22 @@
id: transport_solard
handler: ansible
input:
solard_user:
schema: str!
value:
solard_password:
schema: str!
value:
# solard_transport_class:
# schema: str!
# value:
solard_port:
schema: int!
value: 5555
name:
schema: str!
value: solard
location_id:
schema: str!
value:
reverse: True