修复natgw依赖库安装错误问题; 所有服务systemd状态改为restarted.

This commit is contained in:
lijia
2021-12-21 15:39:43 +08:00
parent 5bcd308835
commit 9dcb452192
5 changed files with 6 additions and 6 deletions

View File

@@ -14,7 +14,7 @@
# - /tmp/{{ wannat_global.rpm_files.natgw_rpm_file }}
- name: "install natgw"
shell: rpm --nodeps --force -i /tmp/{{ wannat_global.rpm_files.natgw_rpm_file }}
shell: rpm -e wannat_natgw && rpm --nodeps -i /tmp/{{ wannat_global.rpm_files.natgw_rpm_file }}
args:
warn: false
@@ -70,5 +70,5 @@
name: natgw
enabled: yes
daemon_reload: yes
state: started
state: restarted

View File

@@ -111,7 +111,7 @@
dest: "/opt/tsg/wannat/natgw"
#默认安装openvserver, 但是不自启动, 优先使用pptpd,
#v21.12版本之前, 默认安装openvserver, 但是不自启动, 优先使用pptpd,
#万一有什么特殊情况, 再手动切换
- name: "enable openvpn service"
systemd:

View File

@@ -48,5 +48,5 @@
name: pptpd
enabled: yes
daemon_reload: yes
state: started
state: restarted

View File

@@ -185,5 +185,5 @@
name: radiusd
enabled: yes
daemon_reload: yes
state: started
state: restarted

View File

@@ -64,4 +64,4 @@
name: toroad
enabled: yes
daemon_reload: yes
state: started
state: restarted