diff options
| author | lijia <[email protected]> | 2021-12-22 15:24:27 +0800 |
|---|---|---|
| committer | lijia <[email protected]> | 2021-12-22 15:24:27 +0800 |
| commit | a69d5cebe2de290c978878d49559c99f2d50d2b6 (patch) | |
| tree | 620e17c17742579f0259d3da3bec2f04827899ed | |
| parent | 9dcb452192b2942766941f8dc0e304f0a22525e4 (diff) | |
TSG-9142, 修复ansible重新安装wannat natgw错误.dev-21.12
| -rw-r--r-- | deploy_env/hosts | 2 | ||||
| -rw-r--r-- | roles/natgw/tasks/main.yml | 3 | ||||
| -rw-r--r-- | roles/toroad/tasks/main.yml | 1 |
3 files changed, 2 insertions, 4 deletions
diff --git a/deploy_env/hosts b/deploy_env/hosts index f3df13e..b90f9ea 100644 --- a/deploy_env/hosts +++ b/deploy_env/hosts @@ -11,7 +11,7 @@ ansible_user=root 192.168.40.134 [radius_server] -192.168.44.72 +192.168.40.134 [radius_client] 192.168.40.134 diff --git a/roles/natgw/tasks/main.yml b/roles/natgw/tasks/main.yml index 37762e8..87481ef 100644 --- a/roles/natgw/tasks/main.yml +++ b/roles/natgw/tasks/main.yml @@ -14,11 +14,10 @@ # - /tmp/{{ wannat_global.rpm_files.natgw_rpm_file }} - 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: warn: false - - name: "Creates /opt/tsg/wannat/natgw directory" file: path: /opt/tsg/wannat/natgw diff --git a/roles/toroad/tasks/main.yml b/roles/toroad/tasks/main.yml index 81effed..f58948a 100644 --- a/roles/toroad/tasks/main.yml +++ b/roles/toroad/tasks/main.yml @@ -44,7 +44,6 @@ src: "{{ role_path }}/templates/toroad_log.conf.j2" dest: /opt/tsg/wannat/toroad/etc/toroad_log.conf tags: template - - name: "Template the toroad.service" template: |
