Merge experimental nach main #3

Merged
sporq merged 16 commits from experimental into main 2023-05-01 18:37:47 +02:00
2 changed files with 11 additions and 1 deletions
Showing only changes of commit 4f1c51475c - Show all commits

View File

@ -1,13 +1,21 @@
- name: Get stats of docker-compose.yaml
ansible.builtin.stat:
path: /opt/gitea/docker-compose.yaml
register: docker_compose_stat
listen:
- Backup Gitea
- name: Stop Gitea for Backup - name: Stop Gitea for Backup
community.docker.docker_compose: community.docker.docker_compose:
project_src: /opt/gitea project_src: /opt/gitea
state: present state: present
stopped: true stopped: true
ignore_errors: true register: docker_compose
listen: listen:
- Backup Gitea - Backup Gitea
notify: notify:
- Ensure Gitea is running - Ensure Gitea is running
when: docker_compose_stat.stat.exists is defined and docker_compose_stat.stat.exists
- name: Backup Gitea Directory - name: Backup Gitea Directory
ansible.builtin.synchronize: ansible.builtin.synchronize:

View File

@ -6,10 +6,12 @@
community.docker.docker_compose: community.docker.docker_compose:
project_src: /opt/gitea project_src: /opt/gitea
restarted: true restarted: true
register: docker_compose
- name: Ensure Gitea is running - name: Ensure Gitea is running
community.docker.docker_compose: community.docker.docker_compose:
project_src: /opt/gitea project_src: /opt/gitea
register: docker_compose
- name: Check Gitea HTTP Response - name: Check Gitea HTTP Response
ansible.builtin.uri: ansible.builtin.uri: