https://github.com/grycap/ansible-role-nomad
Ansible role for Hashicorp Nomad installation
https://github.com/grycap/ansible-role-nomad
Last synced: 4 months ago
JSON representation
Ansible role for Hashicorp Nomad installation
- Host: GitHub
- URL: https://github.com/grycap/ansible-role-nomad
- Owner: grycap
- License: apache-2.0
- Created: 2017-10-03T11:06:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-07-08T06:47:11.000Z (almost 2 years ago)
- Last Synced: 2025-09-08T08:43:46.117Z (9 months ago)
- Language: Jinja
- Homepage:
- Size: 95.7 KB
- Stars: 2
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.apache.org/licenses/LICENSE-2.0)
[](https://travis-ci.org/grycap/ansible-role-nomad)
Ansible Role - Nomad agent
=========
It provides a totally customizable Ansible role for the installation of Nomad. If the variable ```create_nomad_service``` is ```true```, this role creates a Linux service.
Role Variables
--------------
The variables used for the installation and configuration are described in defaults/main file.
Example Playbook
----------------
Deployment of client and server with Consul enabled (and available at 172.17.0.2):
``` yml
- hosts: servers
vars:
name: server
nomad_user: nomad
nomad_group: nomad
bind_address: "172.17.0.3"
server_enabled: true
client_enabled: false
use_consul: true
consul_address: "172.17.0.2:8500"
create_nomad_service: true
roles:
- { role: grycap.nomad }
- hosts: clients
vars:
name: server
nomad_user: nomad
nomad_group: nomad
bind_address: "172.17.0.4"
server_enabled: false
client_enabled: true
use_consul: true
consul_address: "172.17.0.2:8500"
create_nomad_service: true
roles:
- { role: grycap.nomad }
```
License
-------
Apache 2.0