Skip to content

Instantly share code, notes, and snippets.

@jeff
Created April 12, 2016 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeff/72a0a7eea6ae50af81d597ae3953ba71 to your computer and use it in GitHub Desktop.
Save jeff/72a0a7eea6ae50af81d597ae3953ba71 to your computer and use it in GitHub Desktop.
---
- hosts: all
remote_user: root
tasks:
- name: opensrf diagnostic
command: osrf_control --localhost --diagnostic
environment:
PATH: "{{ ansible_env.PATH }}:/openils/bin"
become: yes
become_user: opensrf
become_method: su
register: diag_output
- name: debug
debug: var=diag_output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment