adapt for redhat
This commit is contained in:
parent
2b441a5ac6
commit
3cd5070427
@ -12,7 +12,14 @@
|
||||
- files:
|
||||
- "{{ 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: "{{ consul_os_package }}"
|
||||
|
8
vars/RedHat.yml
Normal file
8
vars/RedHat.yml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
consul_os_package:
|
||||
- consul
|
||||
- consul-template
|
||||
|
||||
consul_service_name: consul
|
||||
|
||||
dnsmasq_package: "dnsmasq"
|
Loading…
Reference in New Issue
Block a user