28 lines
582 B
YAML
28 lines
582 B
YAML
- name: make hoarder directories
|
|
ansible.builtin.file:
|
|
path: "{{ item}}"
|
|
state: directory
|
|
loop:
|
|
- /opt/stacks/hoarder
|
|
|
|
- name: copy hoarder compose file
|
|
ansible.builtin.copy:
|
|
src: hoarder-compose.yml
|
|
dest: /opt/stacks/hoarder/compose.yml
|
|
owner: root
|
|
mode: 644
|
|
|
|
- name: Template out the .env file
|
|
ansible.builtin.template:
|
|
src: hoarder-env.j2
|
|
dest: /opt/stacks/hoarder/.env
|
|
owner: root
|
|
mode: 644
|
|
|
|
- name: deploy hoarder stack
|
|
community.docker.docker_compose_v2:
|
|
project_src: /opt/stacks/hoarder
|
|
files:
|
|
- compose.yml
|
|
|