mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-07 00:57:00 +02:00
Update to 2022-08-06 13:00
This commit is contained in:
@@ -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