feature:新增clixon role
This commit is contained in:
@@ -148,6 +148,7 @@
|
||||
- {role: tsg_sn, tags: tsg_sn}
|
||||
- {role: framework, tags: framework}
|
||||
- {role: mrzcpd, tags: mrzcpd}
|
||||
- {role: clixon, tags: clixon}
|
||||
- {role: redis, tags: redis}
|
||||
- {role: exporter, tags: exporter}
|
||||
- {role: docker, tags: docker}
|
||||
|
||||
BIN
ansible/roles/clixon/files/cligen-5.8.0-release.x86_64.rpm
Normal file
BIN
ansible/roles/clixon/files/cligen-5.8.0-release.x86_64.rpm
Normal file
Binary file not shown.
BIN
ansible/roles/clixon/files/clixon-5.8.0-release.x86_64.rpm
Normal file
BIN
ansible/roles/clixon/files/clixon-5.8.0-release.x86_64.rpm
Normal file
Binary file not shown.
Binary file not shown.
36
ansible/roles/clixon/tasks/main.yml
Normal file
36
ansible/roles/clixon/tasks/main.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
- name: "clixon: copy file to dest"
|
||||
copy:
|
||||
src: '{{ role_path }}/files/'
|
||||
dest: /tmp/ansible_deploy/
|
||||
|
||||
- name: "clixon: install libyaml"
|
||||
yum:
|
||||
name: "libyaml"
|
||||
conf_file: "{{ rpm_repo_config_path }}"
|
||||
state: latest
|
||||
|
||||
- name: "clixon: set symlink"
|
||||
shell: ln -vfs /lib64/libyaml-0.so.2.0.5 /usr/lib64/libyaml.so
|
||||
|
||||
- name: "clixon: install cligen from local"
|
||||
yum:
|
||||
name: "/tmp/ansible_deploy/cligen-5.8.0-release.x86_64.rpm"
|
||||
state: present
|
||||
disable_gpg_check: yes
|
||||
|
||||
- name: "clixon: install clixon from local"
|
||||
yum:
|
||||
name: "/tmp/ansible_deploy/clixon-5.8.0-release.x86_64.rpm"
|
||||
state: present
|
||||
disable_gpg_check: yes
|
||||
|
||||
- name: "clixon: install tsg-os-mgnt-srv from local"
|
||||
yum:
|
||||
name: "/tmp/ansible_deploy/tsg-os-mgnt-srv-1.0.0-1.el8.x86_64.rpm"
|
||||
state: present
|
||||
disable_gpg_check: yes
|
||||
|
||||
- name: "clixon: enable tsg-clixon"
|
||||
systemd:
|
||||
name: tsg-clixon
|
||||
enabled: yes
|
||||
@@ -1,4 +1,9 @@
|
||||
---
|
||||
- name: "Create /opt/tsg/tsg-os-provision/scripts/"
|
||||
file:
|
||||
path: "/opt/tsg/tsg-os-provision/scripts/"
|
||||
state: directory
|
||||
|
||||
- name: "deploy obtain sn tsg-7400"
|
||||
copy:
|
||||
src: "{{ role_path }}/files/{{ item.src }}"
|
||||
|
||||
Reference in New Issue
Block a user