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

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