Bessere Namen für Tasks
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 10s
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 10s
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
listen:
|
||||
- Backup Gitea
|
||||
|
||||
- name: Stop Gitea for Backup
|
||||
- name: Stop Gitea for backup
|
||||
community.docker.docker_compose:
|
||||
project_src: /opt/gitea
|
||||
state: present
|
||||
@@ -17,7 +17,7 @@
|
||||
- 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
|
||||
community.general.archive:
|
||||
path: /opt/gitea/
|
||||
dest: "/var/backups/gitea-{{ gitea.hostname }}.{{ gitea.domain }}@{{ lookup('pipe', 'date --utc --iso-8601=seconds') }}.tar.gz"
|
||||
|
@@ -1,4 +1,4 @@
|
||||
- name: Import Backup Handler
|
||||
- name: Import backup handler
|
||||
ansible.builtin.import_tasks:
|
||||
file: backup.yaml
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
project_src: /opt/gitea
|
||||
register: docker_compose
|
||||
|
||||
- name: Get Gitea HTTP Response
|
||||
- name: Get Gitea HTTP response
|
||||
ansible.builtin.uri:
|
||||
url: "https://{{ gitea.hostname }}.{{ gitea.domain }}"
|
||||
register: gitea_http_response
|
||||
@@ -27,6 +27,6 @@
|
||||
retries: 30
|
||||
delay: 2
|
||||
|
||||
- name: Output Docker Compose State
|
||||
- name: Output docker compose state
|
||||
ansible.builtin.debug:
|
||||
var: docker_compose
|
||||
|
Reference in New Issue
Block a user