28 lines
501 B
YAML
28 lines
501 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:
|
||
|
- python3-pip
|
||
|
- nomad
|
||
|
become: true
|
||
|
|
||
|
- name: install python-nomad
|
||
|
ansible.builtin.pip:
|
||
|
name: python-nomad
|
||
|
state: latest
|
||
|
become: true
|