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/bfdd/tasks/main.yml
2023-11-21 20:10:41 +08:00

40 lines
885 B
YAML

---
- name: "install pcre2"
yum:
name: pcre2
conf_file: "{{ rpm_repo_config_path }}"
state: present
- name: "temp: copy libyang rpm to dest"
copy:
src: "{{ role_path }}/files/libyang2-2.0.7-1.el8.x86_64.rpm"
dest: /tmp
- name: "install libyang2"
yum:
name:
- /tmp/libyang2-2.0.7-1.el8.x86_64.rpm
state: present
disable_gpg_check: yes
- name: "download rpm packages: bfdd"
yum:
name:
- "{{ bfdd_rpm_version.bfdd }}"
conf_file: "{{ rpm_repo_config_path }}"
state: present
download_only: yes
download_dir: "{{ path_download }}"
- name: "Get bfdd rpm path"
find:
path: /tmp/rpm_download/
pattern: "{{ bfdd_rpm_version.bfdd }}*"
register: bfdd_rpm_fullname
- name: "Install bfdd from local path"
yum:
name: "{{ bfdd_rpm_fullname.files[0].path }}"
state: present
disable_gpg_check: yes