ansible-hashistack/roles/nomad/tasks/install_alpine_binary.yml

30 lines
518 B
YAML
Raw Permalink Normal View History

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
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