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-03-06 12:43:26 +08:00

73 lines
1.6 KiB
YAML

---
#- 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
- 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: "temp: copy rpm to dest"
# copy:
# src: "{{ role_path }}/files/bfdd-1.1.1-release.x86_64.rpm"
# dest: /tmp
#- name: "install bfdd"
# yum:
# name:
# - /tmp/bfdd-1.1.1-release.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