adapt for redhat

This commit is contained in:
vincent 2022-06-06 18:19:36 +02:00
parent 2b441a5ac6
commit 3cd5070427
2 changed files with 16 additions and 1 deletions

View File

@ -12,7 +12,14 @@
- files: - files:
- "{{ ansible_os_family }}-{{ ansible_distribution_major_version }}.yml" - "{{ ansible_os_family }}-{{ ansible_distribution_major_version }}.yml"
- "{{ ansible_os_family }}.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 - name: install package
package: package:
name: "{{ consul_os_package }}" name: "{{ consul_os_package }}"

8
vars/RedHat.yml Normal file
View File

@ -0,0 +1,8 @@
---
consul_os_package:
- consul
- consul-template
consul_service_name: consul
dnsmasq_package: "dnsmasq"