Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Runs a couple of plays successfully...
- - name: check if php-fastcgi process running
- shell: ps -eaf | grep php5-cgi | grep -v grep
- register: php-fastcgi-status
- ignore_errors: True
- changed_when: False
- - debug: var=php-fastcgi-status.rc
- - meta: end_play
- TASK [php: check if php-fastcgi process running] ********
- ok: [myexample.com]
- TASK [php: debug] ***********
- ok: [myexample.com] => {
- "php-fastcgi-status.rc": "VARIABLE IS NOT DEFINED!"
- }
- ps -eaf | grep php5-cgi | grep -v grep
- echo $?
Add Comment
Please, Sign In to add comment