mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 00:05:44 +02:00
Update to 2022-08-06 13:00
This commit is contained in:
@@ -6,3 +6,9 @@
|
||||
- "{{ nomad_root_dir }}/tmp/nomad_{{ nomad_version }}_linux_amd64.zip"
|
||||
- "{{ nomad_root_dir }}/tmp/nomad"
|
||||
tags: nomad
|
||||
|
||||
- name: Remove temporary plugin files
|
||||
file: path={{ item.dest }} state=absent
|
||||
loop: "{{ nomad_plugin_dl.results }}"
|
||||
when: nomad_plugin_dl is defined and nomad_plugin_dl.results is defined and item.dest is defined
|
||||
tags: nomad
|
||||
|
@@ -62,8 +62,27 @@
|
||||
dest: "{{ nomad_root_dir }}/plugins/"
|
||||
remote_src: True
|
||||
loop: "{{ nomad_plugin_dl.results }}"
|
||||
when: item.dest | basename | splitext | last in ['.zip','.tgz', '.txz', '.tar.gz', '.tar.xz']
|
||||
notify: restart nomad
|
||||
|
||||
- name: Copy nomad plugins
|
||||
copy:
|
||||
src: "{{ item.dest }}"
|
||||
dest: "{{ nomad_root_dir }}/plugins/"
|
||||
remote_src: True
|
||||
loop: "{{ nomad_plugin_dl.results }}"
|
||||
when: item.dest | basename | splitext | last not in ['.zip','.tgz', '.txz', '.tar.gz', '.tar.xz']
|
||||
notify: restart nomad
|
||||
|
||||
- name: List installed plugins
|
||||
command: ls {{ nomad_root_dir }}/plugins/
|
||||
register: nomad_installed_plugins
|
||||
changed_when: False
|
||||
|
||||
- name: Set permissions on plugins
|
||||
file: path={{ nomad_root_dir }}/plugins/{{ item }} owner=root group=root mode=755
|
||||
loop: "{{ nomad_installed_plugins.stdout_lines }}"
|
||||
|
||||
tags: nomad
|
||||
|
||||
# Nomad looks for the qemu-system-x86_64 bin in $PATH
|
||||
|
Reference in New Issue
Block a user