
run:
  - replace:
     filename: "/etc/nginx/conf.d/discourse.conf"
     from: /listen 80;/
     to: |
       listen unix:/shared/nginx.http.sock;
  - replace:
     filename: "/etc/nginx/conf.d/discourse.conf"
     from: /listen 443 ssl spdy;/
     to: |
       listen unix:/shared/nginx.https.sock ssl spdy;


run:
  - exec: rm -f /shared/nginx.http*.sock;
  - replace:
     filename: "/etc/nginx/conf.d/discourse.conf"
     from: /listen 80;/
     to: |
       listen unix:/shared/nginx.http.sock;
  - replace:
     filename: "/etc/nginx/conf.d/discourse.conf"
     from: /listen 443 ssl spdy;/
     to: |
       listen unix:/shared/nginx.https.sock ssl spdy;

Remove old sockets on bootstrap
Remove old sockets on bootstrap
