25 lines
577 B
YAML
25 lines
577 B
YAML
- name: Import Backup Handler
|
|
ansible.builtin.import_tasks:
|
|
file: backup.yaml
|
|
|
|
- name: Ensure Gitea is restarted
|
|
community.docker.docker_compose:
|
|
project_src: /opt/gitea
|
|
restarted: true
|
|
|
|
- name: Ensure Gitea is running
|
|
community.docker.docker_compose:
|
|
project_src: /opt/gitea
|
|
|
|
- name: Check Gitea HTTP Response
|
|
ansible.builtin.uri:
|
|
url: "https://{{ gitea.hostname }}.{{ gitea.domain }}"
|
|
register: _result
|
|
until: _result.status == 200
|
|
retries: 30
|
|
delay: 2
|
|
|
|
- name: Output Docker Compose State
|
|
ansible.builtin.debug:
|
|
var: docker_compose
|