Update to 2023-07-03 12:00

This commit is contained in:
Daniel Berteaud 2023-07-03 12:00:08 +02:00
parent 364f212977
commit 590e8b5d83
5 changed files with 21 additions and 17 deletions

View File

@ -11,3 +11,7 @@
- name: restart consul-template-nomad
service: name=consul-template-nomad state=restarted
- name: systemd-tmpfiles
command: systemd-tmpfiles --create

View File

@ -2,11 +2,7 @@
- name: Install needed tools
package:
name:
- tar
- zstd
- unzip
- acl
name: "{{ nomad_packages }}"
tags: nomad
- name: Install task driver packages
@ -129,6 +125,14 @@
- post
tags: nomad
- name: Create tmpfile fragment
copy:
content: |
d /run/nomad 775 root {{ nomad_user }}
dest: /etc/tmpfiles.d/nomad.conf
notify: systemd-tmpfiles
tags: nomad
- name: Install iptables cleanup script
copy: src=iptables_cleanup.pl dest={{ nomad_root_dir }}/bin/iptables_cleanup.pl mode=755
tags: nomad

View File

@ -3,6 +3,8 @@ Description=Nomad
Documentation=https://nomadproject.io/docs/
Wants=network-online.target
After=network-online.target
After=vault.service
After=consul.service
ConditionFileNotEmpty={{ nomad_root_dir }}/etc/nomad.hcl
[Service]

View File

@ -1,12 +0,0 @@
---
nomad_task_driver_packages:
java:
- java-17-openjdk-headless
qemu:
- qemu-kvm
podman:
- podman
- podman-docker
containerd-driver:
- containerd.io

View File

@ -1,5 +1,11 @@
---
nomad_packages:
- tar
- zstd
- unzip
- acl
nomad_task_driver_packages:
java:
- java-17-openjdk-headless