# 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 }}"