Files
ansible_role_package/tasks/config/hashicorp.yml
2025-03-31 18:15:07 -06:00

16 lines
406 B
YAML

# vim: set filetype=yaml.ansible :
---
- name: Set OS name for RedHat family
when:
- ansible_os_family == 'RedHat'
ansible.builtin.set_fact:
hashicorp:
repo: "{{ pkgconfig.hashicorp.Linux[rpm_dist.stdout].repo }}"
- name: Set repo for debian
when:
- ansible_os_family == 'Debian'
ansible.builtin.set_fact:
hashicorp:
repo: "{{ pkgconfig.hashicorp.Linux.Debian.repo }}"