Skip to content

Instantly share code, notes, and snippets.

View gu-fan's full-sized avatar
🏠
Working from home

Rykk gu-fan

🏠
Working from home
View GitHub Profile
#Web role handlers
- name: start nginx
service: state=started name=nginx
- name: restart nginx
service: state=restarted name=nginx
- name: check webapp
wait_for_cmd: shell='curl -s -o /dev/null -k -w "%{http_code}" {{local_webapp_url}} | grep 401' delay=15 timeout=60 repeat_delay=3