wulf-ansible/playbooks/apprise.yml

46 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2026-02-28 10:16:50 -05:00
- name: Deploy Apprise
hosts: docker_hosts
become: true
vars:
stack_dir: /opt/stacks/apprise
tasks:
- name: Ensure stack directory exists
ansible.builtin.file:
path: "{{ stack_dir }}"
state: directory
mode: '0755'
- name: Ensure pangolin network exists
community.docker.docker_network:
name: pangolin
state: present
- name: Deploy compose.yml
ansible.builtin.template:
2026-03-08 19:54:01 -04:00
src: apprise-compose.yml.j2
2026-02-28 10:16:50 -05:00
dest: "{{ stack_dir }}/compose.yml"
- name: Ensure config directory exists
ansible.builtin.file:
path: "{{ stack_dir }}/config"
state: directory
mode: '0755'
- name: Deploy apprise config
ansible.builtin.template:
2026-03-08 20:01:23 -04:00
src: templates/apprise.yml.j2
dest: "{{ stack_dir }}/config/apprise.yml"
2026-02-28 10:16:50 -05:00
mode: '0600'
- name: Pull images
community.docker.docker_compose_v2:
project_src: "{{ stack_dir }}"
pull: always
- name: Start stack
community.docker.docker_compose_v2:
project_src: "{{ stack_dir }}"
state: present