30 lines
518 B
YAML
30 lines
518 B
YAML
---
|
|
- 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
|
|
loop:
|
|
- tar
|
|
- unzip
|
|
- py3-pip
|
|
- nomad
|
|
become: true
|
|
|
|
- name: install python-nomad
|
|
ansible.builtin.pip:
|
|
name: python-nomad
|
|
state: latest
|
|
become: true
|