Add changedetection

This commit is contained in:
Thomas Kleinendorst 2024-11-21 15:49:33 +01:00
parent 9cb8f7eb2e
commit babedfe283
4 changed files with 18 additions and 34 deletions

View file

@ -1,25 +1,19 @@
---
- name: Include user role
ansible.builtin.include_role:
name: user
vars:
user_username: "{{ changedetection_username }}"
user_password: "{{ changedetection_password }}"
- name: Create the changedetection container
ansible.builtin.include_role:
name: podman-container
apply:
become: true
become_user: "{{ changedetection_username }}"
vars:
podman_container_name: changedetection-server
podman_container_image: docker.io/dgtlmoon/changedetection.io
podman_container_tag: "{{ changedetection_version }}"
podman_container_publish:
- 127.0.0.1:5000:5000
podman_simple_container_volumes:
- name: changedetection_data
mnt: /datastore
- name: Create a volume
become: true
community.docker.docker_volume:
name: changedetection_data
- name: Install the container
become: true
community.docker.docker_container:
name: changedetection-server
image: "docker.io/dgtlmoon/changedetection.io:{{ changedetection_version }}"
ports:
- "127.0.0.1:5000:5000/tcp"
mounts:
- source: changedetection_data
target: /datastore
restart_policy: always
- name: Include simple-reverse-proxy role
ansible.builtin.include_role:
name: simple-reverse-proxy