2023-09-18 17:03:08 +02:00
|
|
|
---
|
|
|
|
- name: ensure dirs are there
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
become: true
|
|
|
|
loop:
|
|
|
|
- "{{ nomad_etc_dir }}"
|
|
|
|
- "{{ nomad_data_dir }}"
|
|
|
|
|
|
|
|
- name: install nomad apk package
|
|
|
|
community.general.apk:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
|
|
|
update_cache: yes
|
2023-09-21 09:30:39 +02:00
|
|
|
loop:
|
|
|
|
- tar
|
|
|
|
- unzip
|
|
|
|
- py3-pip
|
2023-09-18 17:03:08 +02:00
|
|
|
- nomad
|
|
|
|
become: true
|
|
|
|
|
|
|
|
- name: install python-nomad
|
|
|
|
ansible.builtin.pip:
|
|
|
|
name: python-nomad
|
|
|
|
state: latest
|
|
|
|
become: true
|