This commit is contained in:
Wojtek Bednarzak 2025-02-28 14:45:10 +00:00 committed by GitHub
commit 17d3ba438e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 1 deletions

View file

@ -1,4 +1,9 @@
ansible_user: CHANGEME ansible_user: CHANGEME
nomad_datacenter_name: "aperture" nomad_datacenter_name: "aperture"
nomad_server_bootstrap_expect: 3 nomad_server_bootstrap_expect: 3
consul_generated_encrypt_key: CHANGEME consul_generated_encrypt_key: CHANGEME
nomad_jobs:
- traefik
- dcufm
- user-vms/distro

View file

@ -0,0 +1,12 @@
---
# TODO: Add Nomad namespaces.
- name: Run {{ item }} Nomad Job
community.general.nomad_job:
host: "{{ lookup('ansible.builtin.env', 'NOMAD_ADDR')}}"
token: "{{ lookup('ansible.builtin.env', 'NOMAD_TOKEN')}}"
state: present
content: "{{ lookup('file', '../jobs/' - task - ''.hcl') }}"
with_items:
- "{{ groups['nomad_jobs']}}"