Rheinwerk.consul
Consul Installation Guide
This role helps you install Consul and Consul Template.
Important: This role doesn't create any configuration files; it only installs the necessary binaries and sets up startup scripts and default files. The service is not enabled automatically.
Requirements
Make sure the target machine has unzip
installed.
Role Variables
The main variable for this role is _consul
. This variable holds all the configurations and settings you need. Check defaults/main.yml
for more information.
Dependencies
There are no dependencies for this role.
Example Playbook
To use this role, you will take the _consul
variable from defaults/main.yml
as a template for your configuration and pass it to the role.
Here’s an example of how to use the role with variables:
- hosts: servers
var:
CONSUL:
...
roles:
- { role: consul, tags: [ 'consul' ], _consul: "{{ CONSUL }}" }
License
Refer to the LICENSE file for details.
Author Information
The original author is Daniel Schneller, a member of the Rheinwerk project.
ansible-galaxy install Rheinwerk.consul