adapt for red hat

This commit is contained in:
vincent 2022-06-06 18:21:42 +02:00
parent 60dd8cd8a3
commit 86085c43d5
2 changed files with 14 additions and 0 deletions

View File

@ -6,6 +6,15 @@
- "{{ ansible_os_family }}-{{ ansible_distribution_major_version }}.yml"
- "{{ ansible_os_family }}.yml"
- name: add hashicorp repo
get_url:
url: "https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo"
dest: '/etc/yum.repos.d/hashicorp.repo'
owner: root
group: root
mode: 0644
when: ansible_os_family == "RedHat"
- name: install package
package:
name: "{{ nomad_os_package }}"

5
vars/RedHat.yml Normal file
View File

@ -0,0 +1,5 @@
---
nomad_os_package:
- nomad
nomad_os_service: nomad