|
@@ -21,6 +21,14 @@
|
|
|
- pkg-config
|
|
|
- zlib1g-dev
|
|
|
- libssl-dev
|
|
|
+ - nginx
|
|
|
+
|
|
|
+ handlers:
|
|
|
+ - name: restart_nginx
|
|
|
+ service:
|
|
|
+ name: nginx
|
|
|
+ state: restarted
|
|
|
+
|
|
|
|
|
|
pre_tasks:
|
|
|
- name: Update Apt Cache
|
|
@@ -91,6 +99,40 @@
|
|
|
target: install
|
|
|
become: yes
|
|
|
|
|
|
+ - name: Install Redis Insights
|
|
|
+ get_url:
|
|
|
+ url: https://downloads.redisinsight.redislabs.com/latest/redisinsight-linux64
|
|
|
+ dest: /usr/local/bin/redisinsight
|
|
|
+ mode: '0755'
|
|
|
+ - name: Redis Insights Systemd
|
|
|
+ template:
|
|
|
+ src: systemd_redis_insights.j2
|
|
|
+ dest: /lib/systemd/system/redis-insights.service
|
|
|
+ owner: root
|
|
|
+ group: root
|
|
|
+ mode: 0644
|
|
|
+ - name: Enable Redis Insights Services
|
|
|
+ systemd:
|
|
|
+ name: redis-insights
|
|
|
+ enabled: yes
|
|
|
+ state: started
|
|
|
+ - name: Enable Redis Insights Services in Nginx
|
|
|
+ template:
|
|
|
+ src: nginx_insights.j2
|
|
|
+ dest: /etc/nginx/sites-enabled/insights
|
|
|
+ owner: root
|
|
|
+ group: root
|
|
|
+ mode: 0644
|
|
|
+ notify:
|
|
|
+ - restart_nginx
|
|
|
+ - name: Enable Redis Insights Services
|
|
|
+ file:
|
|
|
+ path: /etc/nginx/sites-enabled/default
|
|
|
+ state: absent
|
|
|
+ notify:
|
|
|
+ - restart_nginx
|
|
|
+
|
|
|
+
|
|
|
roles:
|
|
|
- ntp
|
|
|
|