diff --git a/playbook.yml b/playbook.yml index efa8861..9fea730 100644 --- a/playbook.yml +++ b/playbook.yml @@ -22,8 +22,8 @@ - role: pi-hole - role: actual - role: postgres - # - role: wedding - # - role: changedetection + - role: wedding + - role: changedetection # - role: monitoring vars: # devsec.hardening.ssh_hardening vars: diff --git a/roles/changedetection/tasks/main.yml b/roles/changedetection/tasks/main.yml index 73350fb..11663ee 100644 --- a/roles/changedetection/tasks/main.yml +++ b/roles/changedetection/tasks/main.yml @@ -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 diff --git a/roles/changedetection/vars/main/defaults.yml b/roles/changedetection/vars/main/defaults.yml index 8f6a943..58c9019 100644 --- a/roles/changedetection/vars/main/defaults.yml +++ b/roles/changedetection/vars/main/defaults.yml @@ -1,3 +1,2 @@ --- -changedetection_username: changedetection -changedetection_version: 0.46.03 +changedetection_version: 0.47.06 diff --git a/roles/changedetection/vars/main/vault.yml b/roles/changedetection/vars/main/vault.yml deleted file mode 100644 index 9703da2..0000000 --- a/roles/changedetection/vars/main/vault.yml +++ /dev/null @@ -1,9 +0,0 @@ -$ANSIBLE_VAULT;1.1;AES256 -65363334626534616562376362316134623034396333646361646230313864323562316666623065 -6464353838306530333366653932646163313963346265310a626664653234323765646338613666 -30363762326431656635623839623561346332326363646465343263663931303638623239623439 -6532353332613032390a616464306336313237396163353732363566303761393165643161633165 -35663362623034396638313738643937353765306262653136313438636239663333336636323765 -37313635386333323666303164333030616366316439653235353732616637613564623137316635 -65323965656665633738336632643463653862623836613265663335633336616264333364383438 -37383038393930656339