https://github.com/nahsi/ansible-nomad
Ansible role for HashiCorp Nomad
https://github.com/nahsi/ansible-nomad
ansible gentoo hashicorp nomad
Last synced: 12 months ago
JSON representation
Ansible role for HashiCorp Nomad
- Host: GitHub
- URL: https://github.com/nahsi/ansible-nomad
- Owner: nahsi
- License: mit
- Created: 2021-11-18T06:06:30.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-06-18T17:52:28.000Z (about 1 year ago)
- Last Synced: 2025-07-22T01:58:11.929Z (12 months ago)
- Topics: ansible, gentoo, hashicorp, nomad
- Language: Python
- Homepage:
- Size: 49.8 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Nomad
Install, configure and maintain [Nomad](https://www.nomadproject.io) - a
workload orchestrator from HashiCorp.
## Role Philosophy
Please see
[ansible-consul](https://github.com/nahsi/ansible-consul#role-philosophy).
## Role Variables
See [defaults/](https://github.com/nahsi/ansible-nomad/blob/master/defaults/)
for details and examples.
#### `nomad_version`
- version to use
#### `nomad_dirs`
- a map of directories to create
- default:
```yml
nomad_dir: "/opt/nomad"
nomad_dirs:
main:
path: "{{ nomad_dir }}"
configs:
path: "{{ nomad_dir }}/config.d"
certs:
path: "{{ nomad_dir }}/certs"
mode: "u=rwX,g=rX,o="
logs:
path: "/var/log/nomad"
data:
path: "/var/lib/nomad"
mode: "u=rwX,g=rX,o="
```
#### `nomad_config`
- main [configuration](https://www.nomadproject.io/docs/configuration) file
- example: please see
[defaults/example.yml](https://github.com/nahsi/ansible-nomad/blob/master/defaults/example.yml)
#### `nomad_configs`
- map of configuration files to create in `config.d` directory
#### `nomad_user`
- owner of nomad process and files. Set to `nomad` on server hosts. On client
hosts `root` is required.
- default: `root`
#### `nomad_grop`
- group of `nomad_user`. Set to `nomad` on server hosts.
- default: `root`
#### `nomad_download_url`
- url to get nomad archive from
- default: `https://releases.hashicorp.com`
#### `nomad_service`
- openrc service file
- default: see
[defaults/main.yml](https://github.com/nahsi/ansible-nomad/blob/master/defaults/main.yml)
#### `nomad_unitfile`
- systemd unit file
- default: see
[defaults/main.yml](https://github.com/nahsi/ansible-nomad/blob/master/defaults/main.yml)
#### `skip_handlers`
- skipt consul restart/reload - useful when building images with packer
- default: `false`
## Tags
- `config` - update Nomad unit/service file and sync configuration files
## Author
- **Anatoly Laskaris** - [nahsi](https://github.com/nahsi)