update 20.06.01

This commit is contained in:
zhangzhihan
2020-06-22 10:34:56 +08:00
parent e67c3feb23
commit e1dc6b5f62
22 changed files with 173 additions and 14 deletions

View File

@@ -0,0 +1,27 @@
---
- name: "create /opt/proxy_status"
file:
path: /opt/proxy_status
state: directory
- name: "copy files"
copy:
src:
- "{{ role_path }}/files/proxy_start"
- "{{ role_path }}/files/proxy_status"
- "{{ role_path }}/files/proxy_stop"
dest: /opt/proxy_status
mode: 0755
- name: "copy proxy-status.service"
copy:
src: "{{ role_path }}/files/proxy-status.service"
dest: "/usr/lib/systemd/system/"
mode: 0755
- name: "enable proxy-status"
systemd:
name: proxy-status
enabled: yes
daemon_reload: yes