
As we are using ansible 2.0, we should move from sudo to become to avoid deprecation. Change-Id: Ia084759b9c38f5c045ab14eab3af63a2ad33069f Closes-bug: 1547430
8 lines
576 B
YAML
8 lines
576 B
YAML
- hosts: [{{ host }}]
|
|
become: yes
|
|
tasks:
|
|
- shell: pip install git+git://github.com/Mirantis/solar-agent.git
|
|
- shell: start-stop-daemon --stop --make-pidfile --pidfile /tmp/solar_agent.pid --startas /bin/bash -- -c "exec /usr/local/bin/solar_agent run --port {{solar_agent_port}} --base tcp > /tmp/solar_agent.log 2>&1"
|
|
ignore_errors: True
|
|
- shell: start-stop-daemon -b --start --make-pidfile --pidfile /tmp/solar_agent.pid --startas /bin/bash -- -c "exec /usr/local/bin/solar_agent run --port {{solar_agent_port}} --base tcp > /tmp/solar_agent.log 2>&1"
|