summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlijia <[email protected]>2020-06-12 19:32:17 +0800
committerlijia <[email protected]>2020-06-12 19:32:17 +0800
commit6af65a219f87a52eb4d3a24e0813e15b50600963 (patch)
treee702332dcb7754fa57042e02a5507fdb7173c4be
parent362561cd7a0bcde1e7d34473fcc1541ec71e988a (diff)
service文件在rpm安装时生成,ansible脚本不再copy.
-rw-r--r--depend_library/readme.txt5
-rw-r--r--roles/active_defence/files/service/houyi.service12
-rw-r--r--roles/active_defence/tasks/main.yml20
3 files changed, 15 insertions, 22 deletions
diff --git a/depend_library/readme.txt b/depend_library/readme.txt
new file mode 100644
index 0000000..d3d1228
--- /dev/null
+++ b/depend_library/readme.txt
@@ -0,0 +1,5 @@
+1-BIND���ڲ���DNS����
+2-CURL����CC_flood��url��������
+ licurl��url�������ܣ���7.62.0�汾�Ժ��ṩ,
+ https://curl.haxx.se/libcurl/c/curl_url.html
+ houyi���þ�̬���ӿ�curl-7.69.0
diff --git a/roles/active_defence/files/service/houyi.service b/roles/active_defence/files/service/houyi.service
deleted file mode 100644
index 1563b89..0000000
--- a/roles/active_defence/files/service/houyi.service
+++ /dev/null
@@ -1,12 +0,0 @@
-[Unit]
-Description=houyi service
-Wants=network-online.target
-
-[Service]
-WorkingDirectory=/opt/houyi/bin
-ExecStart=/opt/houyi/bin/houyi
-Restart=always
-RestartSec=5s
-
-[Install]
-WantedBy=multi-user.target \ No newline at end of file
diff --git a/roles/active_defence/tasks/main.yml b/roles/active_defence/tasks/main.yml
index a46fd83..124e661 100644
--- a/roles/active_defence/tasks/main.yml
+++ b/roles/active_defence/tasks/main.yml
@@ -158,16 +158,16 @@
dest: /opt/houyi/bin/houyi_etc/maat_test.json
tags: template
-- name: "copy houyi.service to destination server"
- synchronize:
- src: "{{ role_path }}/files/service/houyi.service"
- dest: "/usr/lib/systemd/system"
-
-- name: "copy sapp.service to destination server"
- synchronize:
- src: "{{ role_path }}/files/service/sapp.service"
- dest: "/usr/lib/systemd/system"
- when: install_sapp | bool
+#- name: "copy houyi.service to destination server"
+# synchronize:
+# src: "{{ role_path }}/files/service/houyi.service"
+# dest: "/usr/lib/systemd/system"
+
+#- name: "copy sapp.service to destination server"
+# synchronize:
+# src: "{{ role_path }}/files/service/sapp.service"
+# dest: "/usr/lib/systemd/system"
+# when: install_sapp | bool
- name: "enable houyi service"
systemd: