Skip to content

Instantly share code, notes, and snippets.

@lindsm
Created January 13, 2016 23:56
Show Gist options
  • Save lindsm/80040d33479b4c33cd76 to your computer and use it in GitHub Desktop.
Save lindsm/80040d33479b4c33cd76 to your computer and use it in GitHub Desktop.
- hosts: sterling_hosts
gather_facts: no
tasks:
- name: Sterling Agent Control COMMAND
command: "disown -a && sudo -u app /cust/app/sterling-agent/bin/agentctrl -a {{ action_type }}"
register: sterling_control
when: action_type == 'start-all' or action_type == 'status-all' or action_type == 'stop-all'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment