rework bird role and add debian support

This commit is contained in:
ace
2024-05-11 03:10:14 +03:00
parent 190dee2182
commit 55cb1294ac
10 changed files with 233 additions and 48 deletions

3
vars/Debian.yaml Normal file
View File

@ -0,0 +1,3 @@
bird_package_name: "bird2"
bird_package: "{{ bird_package_name + '-' + bird_version if (bird_version is defined and (bird_version != '*' and bird_version != '' and bird_version != 'latest')) else bird_package_name }}"
bird_unit_name: "bird"

3
vars/RedHat.yaml Normal file
View File

@ -0,0 +1,3 @@
bird_package_name: "{{ 'bird2' if ansible_facts['distribution_major_version'] == '7' else 'bird' }}"
bird_package: "{{ bird_package_name + '-' + bird_version if (bird_version is defined and (bird_version != '*' and bird_version != '' and bird_version != 'latest')) else bird_package_name }}"
bird_unit_name: "bird"