| 123456789101112131415161718192021222324252627282930313233343536 |
- ---
- - name: restart rabbitmq service
- service: name={{ rabbitmq_service_name }} state=restarted
-
- - name: restart uchiwa service
- service: name=uchiwa state=restarted
- - name: restart sensu-server service
- service: name=sensu-server state=restarted
- - name: restart sensu-api service
- service: name=sensu-api state=restarted
- - name: restart sensu-client service
- service: name=sensu-client state=restarted
- # Joyent SmartOS specific handlers
- - name: import sensu-server service
- command: /usr/sbin/svccfg import /opt/local/lib/svc/manifest/sensu-server.xml
-
- - name: import sensu-api service
- command: /usr/sbin/svccfg import /opt/local/lib/svc/manifest/sensu-api.xml
-
- - name: import sensu-client service
- command: /usr/sbin/svccfg import /opt/local/lib/svc/manifest/sensu-client.xml
-
- - name: import uchiwa service
- command: /usr/sbin/svccfg import /opt/local/lib/svc/manifest/uchiwa.xml
- - name: Build and deploy Uchiwa
- shell: npm install --production
- args:
- chdir: "{{ uchiwa_path }}/go/src/github.com/sensu/uchiwa"
- become: true
- become_user: "{{ sensu_user_name }}"
|