adapt for red hat
This commit is contained in:
parent
60dd8cd8a3
commit
86085c43d5
@ -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
5
vars/RedHat.yml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
nomad_os_package:
|
||||
- nomad
|
||||
|
||||
nomad_os_service: nomad
|
Loading…
Reference in New Issue
Block a user