2020-03-13 lijia update:
1-更新oam, tsg-cli模块的rpm包; 2-修改roles/oam_cli/tasks/main.yml, Templates application.properties的路径错误; 3-修改roles/oam_core/task目录名称错误,改为tasks.
This commit is contained in:
Binary file not shown.
@@ -12,5 +12,5 @@
|
||||
- name: "Templates application.properties"
|
||||
template:
|
||||
src: "{{role_path}}/templates/application.properties.j2"
|
||||
dest: /opt/tsg/oam_cli/application.properties
|
||||
dest: /opt/tsg/cli/application.properties
|
||||
tags: template
|
||||
|
||||
Binary file not shown.
@@ -11,7 +11,8 @@
|
||||
|
||||
- name: "bak snmpd.conf"
|
||||
shell: cp -rf /usr/share/snmp/snmpd.conf /usr/share/snmp/snmpd.conf_origin
|
||||
|
||||
ignore_errors: yes
|
||||
|
||||
- name: "Templates snmpd.conf"
|
||||
template:
|
||||
src: "{{role_path}}/templates/snmpd.conf"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,7 +1,8 @@
|
||||
---
|
||||
- name: "copy oam_core.rpm to destination server"
|
||||
copy:
|
||||
src: "{{ role_path }}/files/"
|
||||
dest: /tmp
|
||||
synchronize:
|
||||
src: "{{ role_path }}/files/oam_core-1.0-1.0.x86_64.rpm"
|
||||
dest: "/tmp/"
|
||||
|
||||
- name: "install oam_core"
|
||||
yum:
|
||||
Binary file not shown.
@@ -9,10 +9,10 @@
|
||||
- /tmp/oam_snmp-1.0-1.0.x86_64.rpm
|
||||
state: present
|
||||
|
||||
- name: "Templates application-centos2.properties"
|
||||
- name: "Templates application.properties"
|
||||
template:
|
||||
src: "{{role_path}}/templates/application.properties.j2"
|
||||
dest: /opt/tsg/oam_snmp/application.properties
|
||||
dest: /opt/tsg/snmp/application.properties
|
||||
tags: template
|
||||
|
||||
- name: "Start oam_snmp"
|
||||
@@ -30,8 +30,9 @@
|
||||
dest: /etc/snmp/snmpd.conf
|
||||
tags: template
|
||||
|
||||
- name: "Start snmpd"
|
||||
systemd:
|
||||
name: snmpd
|
||||
state: restarted
|
||||
enabled: yes
|
||||
#- name: "Start snmpd"
|
||||
# systemd:
|
||||
# name: snmpd
|
||||
# state: restarted
|
||||
# enabled: yes
|
||||
# ignore_errors: yes
|
||||
Reference in New Issue
Block a user