This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tsg-tsg-os-buildimage/ansible/roles/framework/tasks/main.yml

49 lines
1.4 KiB
YAML

- name: "copy framework rpms to destination server"
copy:
src: "{{ role_path }}/files/"
dest: "/tmp/ansible_deploy/"
- name: "install framework packages by rpm packages"
yum:
name: "{{ item }}"
state: present
conf_file: "{{ rpm_repo_config_path }}"
with_items:
- librdkafka
- lz4
- name: "install framework packages"
yum:
name: "{{ item.value }}"
state: present
conf_file: "{{ rpm_repo_config_path }}"
download_only: yes
download_dir: /tmp/rpm_download/
with_dict: "{{ framework_rpm_version }}"
- name: "Install frameworks except libmaatframe and libcjson"
shell: rpm -i /tmp/rpm_download/{{ item.value }}* --prefix {{ framework.prefix_path }}
when: item.key != 'libcjson' and item.key != 'libmaatframe'
with_dict: "{{ framework_rpm_version }}"
- name: "Install frameworks only libmaatframe and libcjson"
shell: rpm -i /tmp/rpm_download/{{ item }}* --prefix {{ framework.prefix_path }}/lib
with_items:
- "{{ framework_rpm_version.libcjson }}"
- "{{ framework_rpm_version.libmaatframe }}"
- name: "mkdir /etc/ld.so.conf.d/"
file:
path: /etc/ld.so.conf.d/
state: directory
- name: "copy framework.conf to destination server"
copy:
src: "{{ role_path }}/files/framework.conf"
dest: /etc/ld.so.conf.d/
- name: "copy maat_redis_tool to destination"
copy:
src: "{{ role_path }}/files/maat_redis_tool"
dest: /opt/MESA/bin/
mode: 0755