mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 08:15:54 +02:00
Update to 2022-08-30 12:00
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
---
|
||||
|
||||
# Version of Nomad to install
|
||||
nomad_version: 1.3.3
|
||||
nomad_version: 1.3.4
|
||||
# URL of the archive
|
||||
nomad_archive_url: https://releases.hashicorp.com/nomad/{{ nomad_version }}/nomad_{{ nomad_version }}_linux_amd64.zip
|
||||
# Expected sha256 of the archive
|
||||
nomad_archive_sha256: d908811cebe2a8373e93c4ad3d09af5c706241878ff3f21ee0f182b4ecb571f2
|
||||
nomad_archive_sha256: c20d26b411c1df9c9b7a571e3ba6ee900772703211c565224612bfc199473be9
|
||||
|
||||
# List of plugins to install
|
||||
nomad_plugins:
|
||||
|
@@ -8,7 +8,10 @@
|
||||
command: "{{ nomad_root_dir }}/bin/nomad operator snapshot save {{ nomad_root_dir }}/archives/{{ nomad_current_version }}/nomad.snap"
|
||||
args:
|
||||
creates: "{{ nomad_root_dir }}/archives/{{ nomad_current_version }}/nomad.snap"
|
||||
when: nomad_conf.server.enabled
|
||||
when:
|
||||
- nomad_conf.server.enabled
|
||||
- nomad_services.ansible_facts.services['nomad.service'] is defined
|
||||
- nomad_services.ansible_facts.services['nomad.service'].state == 'started'
|
||||
environment:
|
||||
NOMAD_TOKEN: "{{ nomad_mgm_token | default(omit) }}"
|
||||
tags: nomad
|
||||
|
@@ -38,4 +38,7 @@
|
||||
set_fact: nomad_enabled_task_drivers={{ nomad_conf.client.task_drivers | dict2items | selectattr('value.enabled', 'equalto', True) | map(attribute='key') }}
|
||||
tags: nomad
|
||||
|
||||
|
||||
- name: Check the state of the services
|
||||
service_facts:
|
||||
register: nomad_services
|
||||
tags: nomad
|
||||
|
Reference in New Issue
Block a user