mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-23 21:53:21 +02:00
Update to 2023-07-03 12:00
This commit is contained in:
parent
364f212977
commit
590e8b5d83
@ -11,3 +11,7 @@
|
|||||||
|
|
||||||
- name: restart consul-template-nomad
|
- name: restart consul-template-nomad
|
||||||
service: name=consul-template-nomad state=restarted
|
service: name=consul-template-nomad state=restarted
|
||||||
|
|
||||||
|
- name: systemd-tmpfiles
|
||||||
|
command: systemd-tmpfiles --create
|
||||||
|
|
||||||
|
@ -2,11 +2,7 @@
|
|||||||
|
|
||||||
- name: Install needed tools
|
- name: Install needed tools
|
||||||
package:
|
package:
|
||||||
name:
|
name: "{{ nomad_packages }}"
|
||||||
- tar
|
|
||||||
- zstd
|
|
||||||
- unzip
|
|
||||||
- acl
|
|
||||||
tags: nomad
|
tags: nomad
|
||||||
|
|
||||||
- name: Install task driver packages
|
- name: Install task driver packages
|
||||||
@ -129,6 +125,14 @@
|
|||||||
- post
|
- post
|
||||||
tags: nomad
|
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
|
- name: Install iptables cleanup script
|
||||||
copy: src=iptables_cleanup.pl dest={{ nomad_root_dir }}/bin/iptables_cleanup.pl mode=755
|
copy: src=iptables_cleanup.pl dest={{ nomad_root_dir }}/bin/iptables_cleanup.pl mode=755
|
||||||
tags: nomad
|
tags: nomad
|
||||||
|
@ -3,6 +3,8 @@ Description=Nomad
|
|||||||
Documentation=https://nomadproject.io/docs/
|
Documentation=https://nomadproject.io/docs/
|
||||||
Wants=network-online.target
|
Wants=network-online.target
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
|
After=vault.service
|
||||||
|
After=consul.service
|
||||||
ConditionFileNotEmpty={{ nomad_root_dir }}/etc/nomad.hcl
|
ConditionFileNotEmpty={{ nomad_root_dir }}/etc/nomad.hcl
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
nomad_task_driver_packages:
|
|
||||||
java:
|
|
||||||
- java-17-openjdk-headless
|
|
||||||
qemu:
|
|
||||||
- qemu-kvm
|
|
||||||
podman:
|
|
||||||
- podman
|
|
||||||
- podman-docker
|
|
||||||
containerd-driver:
|
|
||||||
- containerd.io
|
|
@ -1,5 +1,11 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
nomad_packages:
|
||||||
|
- tar
|
||||||
|
- zstd
|
||||||
|
- unzip
|
||||||
|
- acl
|
||||||
|
|
||||||
nomad_task_driver_packages:
|
nomad_task_driver_packages:
|
||||||
java:
|
java:
|
||||||
- java-17-openjdk-headless
|
- java-17-openjdk-headless
|
Loading…
x
Reference in New Issue
Block a user