main.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. ---
  2. - name: restart rabbitmq service
  3. service: name={{ rabbitmq_service_name }} state=restarted
  4. - name: restart uchiwa service
  5. service: name=uchiwa state=restarted
  6. - name: restart sensu-server service
  7. service: name=sensu-server state=restarted
  8. - name: restart sensu-api service
  9. service: name=sensu-api state=restarted
  10. - name: restart sensu-client service
  11. service: name=sensu-client state=restarted
  12. # Joyent SmartOS specific handlers
  13. - name: import sensu-server service
  14. command: /usr/sbin/svccfg import /opt/local/lib/svc/manifest/sensu-server.xml
  15. - name: import sensu-api service
  16. command: /usr/sbin/svccfg import /opt/local/lib/svc/manifest/sensu-api.xml
  17. - name: import sensu-client service
  18. command: /usr/sbin/svccfg import /opt/local/lib/svc/manifest/sensu-client.xml
  19. - name: import uchiwa service
  20. command: /usr/sbin/svccfg import /opt/local/lib/svc/manifest/uchiwa.xml
  21. - name: Build and deploy Uchiwa
  22. shell: npm install --production
  23. args:
  24. chdir: "{{ uchiwa_path }}/go/src/github.com/sensu/uchiwa"
  25. become: true
  26. become_user: "{{ sensu_user_name }}"