mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-07 09:07:03 +02:00
Update to 2022-08-03 16:00
This commit is contained in:
@@ -15,6 +15,14 @@
|
||||
notify: restart nomad
|
||||
tags: nomad
|
||||
|
||||
- when: nomad_install_mode == 'upgrade'
|
||||
name: Clear plugin dir on upgrades
|
||||
file: path={{ nomad_root_dir }}/plugins state={{ item }} owner={{ nomad_user }} group={{ nomad_user }}
|
||||
loop:
|
||||
- absent
|
||||
- directory
|
||||
tags: nomad
|
||||
|
||||
- when: nomad_install_mode != 'none'
|
||||
block:
|
||||
- name: Download nomad
|
||||
@@ -35,10 +43,37 @@
|
||||
dest: "{{ nomad_root_dir }}/bin/nomad"
|
||||
remote_src: True
|
||||
mode: 755
|
||||
notify: restart nomad
|
||||
|
||||
- name: Link in /usr/local/bin
|
||||
file: src={{ nomad_root_dir }}/bin/nomad dest=/usr/local/bin/nomad state=link force=True
|
||||
|
||||
- name: Download plugins
|
||||
get_url:
|
||||
url: "{{ nomad_plugins[item].archive_url }}"
|
||||
dest: "{{ nomad_root_dir }}/tmp"
|
||||
checksum: sha256:{{ nomad_plugins[item].sha256 }}
|
||||
register: nomad_plugin_dl
|
||||
loop: "{{ nomad_plugins.keys() | list }}"
|
||||
|
||||
- name: Extract nomad plugins
|
||||
unarchive:
|
||||
src: "{{ item.dest }}"
|
||||
dest: "{{ nomad_root_dir }}/plugins/"
|
||||
remote_src: True
|
||||
loop: "{{ nomad_plugin_dl.results }}"
|
||||
notify: restart nomad
|
||||
|
||||
tags: nomad
|
||||
|
||||
# Nomad looks for the qemu-system-x86_64 bin in $PATH
|
||||
# so it needs to be available for Nomad to detect it
|
||||
- name: Link qemu-kvm to qemu-system-x86_64
|
||||
file:
|
||||
src: /usr/libexec/qemu-kvm
|
||||
dest: /usr/local/bin/qemu-system-x86_64
|
||||
state: link
|
||||
when: nomad_conf.client.enabled and 'qemu' in nomad_enabled_task_drivers
|
||||
tags: nomad
|
||||
|
||||
- name: Install bash completion support
|
||||
|
Reference in New Issue
Block a user