packages are more generic

- if config is needed, it has a file in vars/
- all imported vars for pkgs are namespaced with _<pkgname>
This commit is contained in:
Matthew Stobbs
2025-01-23 00:29:58 -07:00
parent 6fa5a46701
commit 0f2d22f3c5
76 changed files with 277 additions and 594 deletions

View File

@@ -13,7 +13,7 @@
- ansible_distribution_major_version|int >= 41
ansible.builtin.command:
creates: /etc/yum.repos.d/hashicorp.repo
cmd: "dnf config-manager addrepo --from-repofile={{ _hashicorp.Fedora.repo }}"
cmd: "dnf config-manager addrepo --from-repofile={{ _hashicorp.Linux.Fedora.repo }}"
- name: enable hashicorp repo for fedora <41
become: true
@@ -22,7 +22,7 @@
- ansible_distribution_major_version|int < 41
ansible.builtin.command:
creates: /etc/yum.repos.d/hashicorp.repo
cmd: "dnf config-manager --add-repo {{ _hashicorp.Fedora.repo }}"
cmd: "dnf config-manager --add-repo {{ _hashicorp.Linux.Fedora.repo }}"
- name: enable hashicorp repo for RHEL like distribution
become: true
@@ -30,7 +30,7 @@
- ansible_distribution != 'Fedora'
ansible.builtin.command:
creates: /etc/yum.repos.d/hashicorp.repo
cmd: "dnf config-manager --add-repo {{ _hashicorp.RedHat.repo }}"
cmd: "dnf config-manager --add-repo {{ _hashicorp.Linux.RedHat.repo }}"
- name: Debian based repository
when: ansible_os_family == 'Debian'
@@ -57,12 +57,11 @@
- name: enable hasicorp repo for debian
ansible.builtin.apt_repository:
repo: "{{ _hashicorp.Debian.repo }}"
repo: "{{ _hashicorp.Linux.Debian.repo }}"
state: present
update_cache: false
- name: enable hashicorp homebrew tap
when: ansible_os_family == 'Darwin'
community.general.homebrew_tap:
name: hashicorp/tap
state: present
ansible.builtin.set_fact:
brewtaps: "{{ brewtaps + ['hashicorp/tap'] }}"