TSG-9142, 修复ansible重新安装wannat natgw错误.
This commit is contained in:
@@ -11,7 +11,7 @@ ansible_user=root
|
|||||||
192.168.40.134
|
192.168.40.134
|
||||||
|
|
||||||
[radius_server]
|
[radius_server]
|
||||||
192.168.44.72
|
192.168.40.134
|
||||||
|
|
||||||
[radius_client]
|
[radius_client]
|
||||||
192.168.40.134
|
192.168.40.134
|
||||||
|
|||||||
@@ -14,11 +14,10 @@
|
|||||||
# - /tmp/{{ wannat_global.rpm_files.natgw_rpm_file }}
|
# - /tmp/{{ wannat_global.rpm_files.natgw_rpm_file }}
|
||||||
|
|
||||||
- name: "install natgw"
|
- name: "install natgw"
|
||||||
shell: rpm -e wannat_natgw && rpm --nodeps -i /tmp/{{ wannat_global.rpm_files.natgw_rpm_file }}
|
shell: yum -y erase wannat_natgw && rpm --nodeps -i /tmp/{{ wannat_global.rpm_files.natgw_rpm_file }}
|
||||||
args:
|
args:
|
||||||
warn: false
|
warn: false
|
||||||
|
|
||||||
|
|
||||||
- name: "Creates /opt/tsg/wannat/natgw directory"
|
- name: "Creates /opt/tsg/wannat/natgw directory"
|
||||||
file:
|
file:
|
||||||
path: /opt/tsg/wannat/natgw
|
path: /opt/tsg/wannat/natgw
|
||||||
|
|||||||
@@ -45,7 +45,6 @@
|
|||||||
dest: /opt/tsg/wannat/toroad/etc/toroad_log.conf
|
dest: /opt/tsg/wannat/toroad/etc/toroad_log.conf
|
||||||
tags: template
|
tags: template
|
||||||
|
|
||||||
|
|
||||||
- name: "Template the toroad.service"
|
- name: "Template the toroad.service"
|
||||||
template:
|
template:
|
||||||
src: "{{ role_path }}/templates/toroad.service.j2"
|
src: "{{ role_path }}/templates/toroad.service.j2"
|
||||||
|
|||||||
Reference in New Issue
Block a user