Setup Hashicorp Nomad on RHEL and Debian servers.
become: true
for a role or the entire playbookThis role supports three variables:
# Nomad version
version: 1.8.3
# Type of Nomad service
type: client
# Path to Nomad configuration file
config: /path/to/config/client.hcl
# Wait or not for Consul startup before run Nomad
wait_for_consul: false
Examples of configurations for both server and client can be found in examples/config folder.
It's pretty straightforward. Just include role in a playbook:
- hosts: all
become: true
roles:
- role: devkyt.nomad
vars:
version: 1.8.3
type: client
config: /path/to/config/client.hcl
wait_for_consul: false
Created by Kyrylo Tykhanskyi in the rainy September of 2024.