fixing hashicorp
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Load hashicorp repo config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hashicorp.yml
|
||||
|
||||
- name: RedHat repository
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
@@ -11,7 +15,7 @@
|
||||
- ansible_distribution_major_version|int >= 41
|
||||
ansible.builtin.command:
|
||||
creates: /etc/yum.repos.d/hashicorp.repo
|
||||
cmd: "dnf config-manager addrepo --from-repofile={{ pkgconfig.hashicorp.Linux.Fedora.repo }}"
|
||||
cmd: "dnf config-manager addrepo --from-repofile={{ hashicorp.repo }}"
|
||||
|
||||
- name: Enable hashicorp repo for fedora <41
|
||||
become: true
|
||||
@@ -20,7 +24,7 @@
|
||||
- ansible_distribution_major_version|int < 41
|
||||
ansible.builtin.command:
|
||||
creates: /etc/yum.repos.d/hashicorp.repo
|
||||
cmd: "dnf config-manager --add-repo {{ pkgconfig.hashicorp.Linux.Fedora.repo }}"
|
||||
cmd: "dnf config-manager --add-repo {{ hashicorp.repo }}"
|
||||
|
||||
- name: Enable hashicorp repo for RHEL like distribution
|
||||
become: true
|
||||
@@ -28,7 +32,7 @@
|
||||
- ansible_distribution != 'Fedora'
|
||||
ansible.builtin.command:
|
||||
creates: /etc/yum.repos.d/hashicorp.repo
|
||||
cmd: "dnf config-manager --add-repo {{ pkgconfig.hashicorp.Linux.RedHat.repo }}"
|
||||
cmd: "dnf config-manager --add-repo {{ hashicorp.repo }}"
|
||||
|
||||
- name: Debian based repository
|
||||
when:
|
||||
|
||||
Reference in New Issue
Block a user