https://github.com/devkyt/ansible-role-consul
Ansible role for setting up Consul
https://github.com/devkyt/ansible-role-consul
ansible ansible-role automation consul hashicorp
Last synced: 4 months ago
JSON representation
Ansible role for setting up Consul
- Host: GitHub
- URL: https://github.com/devkyt/ansible-role-consul
- Owner: devkyt
- License: mit
- Created: 2024-09-12T14:35:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-17T09:44:02.000Z (over 1 year ago)
- Last Synced: 2025-02-14T11:02:02.593Z (over 1 year ago)
- Topics: ansible, ansible-role, automation, consul, hashicorp
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Ansible Role: Consul
Setup Hashicorp Consul on RHEL and Debian servers.
## Requirements
- Ansible >= 2.15
- Run with ```become: true``` for a role or the entire playbook
## Variables
This role supports only two variables: a version of Consul which you want to setup
and the path to config file. Examples of configurations for both server and client can be found
in examples/config folder.
```yaml
# Consul version
version: 1.19.1
# Path to Consul configuration file
config: /path/to/config/client.hcl
```
## How to Use
It's pretty straightforward. Just include role in a playbook:
```yaml
- hosts: all
become: true
roles:
- role: devkyt.consul
vars:
version: 1.19.1
config: /path/to/config/client.hcl
```
## Author
Created by Kyrylo Tykhanskyi in the rainy September of 2024.