fixing hashicorp
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
# vim: set filetype=yaml.ansible :
|
# vim: set filetype=yaml.ansible :
|
||||||
---
|
---
|
||||||
|
- name: Load hashicorp repo config
|
||||||
|
ansible.builtin.include_tasks:
|
||||||
|
file: config/hashicorp.yml
|
||||||
|
|
||||||
- name: RedHat repository
|
- name: RedHat repository
|
||||||
when:
|
when:
|
||||||
- ansible_os_family == 'RedHat'
|
- ansible_os_family == 'RedHat'
|
||||||
@@ -11,7 +15,7 @@
|
|||||||
- ansible_distribution_major_version|int >= 41
|
- ansible_distribution_major_version|int >= 41
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
creates: /etc/yum.repos.d/hashicorp.repo
|
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
|
- name: Enable hashicorp repo for fedora <41
|
||||||
become: true
|
become: true
|
||||||
@@ -20,7 +24,7 @@
|
|||||||
- ansible_distribution_major_version|int < 41
|
- ansible_distribution_major_version|int < 41
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
creates: /etc/yum.repos.d/hashicorp.repo
|
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
|
- name: Enable hashicorp repo for RHEL like distribution
|
||||||
become: true
|
become: true
|
||||||
@@ -28,7 +32,7 @@
|
|||||||
- ansible_distribution != 'Fedora'
|
- ansible_distribution != 'Fedora'
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
creates: /etc/yum.repos.d/hashicorp.repo
|
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
|
- name: Debian based repository
|
||||||
when:
|
when:
|
||||||
|
|||||||
@@ -2,7 +2,9 @@ hashicorp:
|
|||||||
Linux:
|
Linux:
|
||||||
".el9":
|
".el9":
|
||||||
repo: https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
|
repo: https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
|
||||||
fedora:
|
".fc40":
|
||||||
|
repo: https://rpm.releases.hashicorp.com/fedora/hashicorp.repo
|
||||||
|
".fc41":
|
||||||
repo: https://rpm.releases.hashicorp.com/fedora/hashicorp.repo
|
repo: https://rpm.releases.hashicorp.com/fedora/hashicorp.repo
|
||||||
debian:
|
debian:
|
||||||
repo: "deb [arch={{ ansible_architecture }} signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com {{ ansible_distribution_release }} main"
|
repo: "deb [arch={{ ansible_architecture }} signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com {{ ansible_distribution_release }} main"
|
||||||
|
|||||||
Reference in New Issue
Block a user