diff --git a/resources/transport_solard/actions/update.yaml b/resources/transport_solard/actions/update.yaml new file mode 100644 index 00000000..a6fe5bb4 --- /dev/null +++ b/resources/transport_solard/actions/update.yaml @@ -0,0 +1,7 @@ +- hosts: [{{ host }}] + sudo: yes + tasks: + - shell: pip install -e /vagrant/solard + - shell: start-stop-daemon --stop --make-pidfile --pidfile /tmp/solard.pid --chdir /vagrant/solard --startas /bin/bash -- -c "exec /usr/local/bin/solard run --port {{solard_port}} --base tcp > /tmp/solard.log 2>&1" + ignore_errors: True + - shell: start-stop-daemon -b --start --make-pidfile --pidfile /tmp/solard.pid --chdir /vagrant/solard --startas /bin/bash -- -c "exec /usr/local/bin/solard run --port {{solard_port}} --base tcp > /tmp/solard.log 2>&1"