浏览代码

fix fathom monit wrong task name and missing ignore_errors for first run. fix typo.

Thomas Buck 5 年前
父节点
当前提交
eb39986288
共有 3 个文件被更改,包括 4 次插入6 次删除
  1. 1
    3
      roles/blog/tasks/fathom.yml
  2. 2
    2
      roles/monitoring/files/etc_monit_conf.d_fathom
  3. 1
    1
      roles/nextcloud/tasks/nextcloud.yml

+ 1
- 3
roles/blog/tasks/fathom.yml 查看文件

@@ -16,13 +16,11 @@
16 16
 
17 17
 - name: Stop old fathom instance
18 18
   service: name=fathom-stats state=stopped
19
+  ignore_errors: True
19 20
 
20 21
 - name: Copy fathom binary to /usr/local/bin
21 22
   shell: cp fathom/fathom /usr/local/bin/fathom chdir=/root
22 23
 
23
-- name: Remove downloaded temporary fathom files
24
-  file: state=absent path=/root/fathom
25
-
26 24
 - name: Create fathom working directory
27 25
   file: state=directory path=/home/{{ main_user_name }}/fathom-stats
28 26
 

+ 2
- 2
roles/monitoring/files/etc_monit_conf.d_fathom 查看文件

@@ -1,7 +1,7 @@
1 1
 check process fathom matching fathom
2 2
   group www
3
-  start program = "/bin/systemctl start fathom"
4
-  stop program = "/bin/systemctl stop fathom"
3
+  start program = "/bin/systemctl start fathom-stats"
4
+  stop program = "/bin/systemctl stop fathom-stats"
5 5
   if failed port 9000 protocol http
6 6
     with timeout 10 seconds
7 7
     then restart

+ 1
- 1
roles/nextcloud/tasks/nextcloud.yml 查看文件

@@ -23,7 +23,7 @@
23 23
     - php-curl
24 24
     - php-intl
25 25
     - curl
26
-    - unzip  
26
+    - unzip
27 27
   tags:
28 28
     - dependencies
29 29
 

正在加载...
取消
保存