Update to 2023-03-08 21:00

This commit is contained in:
Daniel Berteaud
2023-03-08 21:00:12 +01:00
parent 41240aa121
commit 1f83a5a24e
5 changed files with 9 additions and 5 deletions

View File

@@ -26,6 +26,7 @@
- dir: data
owner: "{{ nomad_user }}"
group: "{{ nomad_user }}"
mode: 700
- dir: plugins
owner: "{{ nomad_user }}"
group: "{{ nomad_user }}"

View File

@@ -24,7 +24,7 @@
- when: nomad_bin.stat.exists
block:
- name: Detect installed version
shell: /usr/local/bin/nomad version | perl -pe 's/Nomad v(\d+(\.\d+)*)\s.*/$1/'
shell: /usr/local/bin/nomad version | perl -ne '/Nomad v(\d+(\.\d+)*)\s.*/ && print "$1\n"'
changed_when: False
register: nomad_current_version
- set_fact: nomad_current_version={{ nomad_current_version.stdout }}