Guest User

Untitled

a guest
Oct 22nd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. # Runs a couple of plays successfully...
  2.  
  3. - name: check if php-fastcgi process running
  4. shell: ps -eaf | grep php5-cgi | grep -v grep
  5. register: php-fastcgi-status
  6. ignore_errors: True
  7. changed_when: False
  8.  
  9. - debug: var=php-fastcgi-status.rc
  10. - meta: end_play
  11.  
  12. TASK [php: check if php-fastcgi process running] ********
  13. ok: [myexample.com]
  14.  
  15. TASK [php: debug] ***********
  16. ok: [myexample.com] => {
  17. "php-fastcgi-status.rc": "VARIABLE IS NOT DEFINED!"
  18. }
  19.  
  20. ps -eaf | grep php5-cgi | grep -v grep
  21.  
  22. echo $?
Add Comment
Please, Sign In to add comment