-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
- name: "Setup snap to install {{ package_name }}" | ||
become: yes | ||
block: | ||
- name: "Ensure EPEL Release for RHEL 9 is configured" | ||
ansible.builtin.command: "sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm" | ||
|
||
- name: "Ensure Snap is installed" | ||
ansible.builtin.command: "sudo yum install snapd" | ||
|
||
- name: "Ensure Snapd.socket is enabled" | ||
ansible.builtin.command: "sudo systemctl enable --now snapd.socket" | ||
|
||
- name: "Ensure {{ package_name }} is installed." | ||
ansible.builtin.command: "sudo snap install {{ package_name }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
- name: "Ensure Harshicorp repo is enabled" | ||
ansible.builtin.yum_repository: | ||
name: 'hashi' | ||
description: 'Hashicorp Stable - $basearch' | ||
gpgcheck: true | ||
gpgkey: 'https://rpm.releases.hashicorp.com/gpg' | ||
file: external_repos | ||
baseurl: 'https://rpm.releases.hashicorp.com/RHEL/$releasever/$basearch/stable' | ||
|
||
- name: "Ensure vault package is installed." | ||
ansible.builtin.yum: | ||
name: vault | ||
state: present | ||
update_cache: true |