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,19 +5,19 @@
|
||||
# - docker.io
|
||||
# - python3-docker
|
||||
|
||||
- name: Create git USER
|
||||
- name: Ensure git user exists
|
||||
ansible.builtin.user:
|
||||
name: git
|
||||
register: git_user
|
||||
|
||||
- name: Create Gitea
|
||||
- name: Ensure Gitea directory exists
|
||||
ansible.builtin.file:
|
||||
path: "/opt/gitea"
|
||||
state: directory
|
||||
owner: root
|
||||
mode: "755"
|
||||
|
||||
- name: Create Data Directory
|
||||
- name: Ensure data directory exists
|
||||
ansible.builtin.file:
|
||||
path: "/opt/gitea/data"
|
||||
state: directory
|
||||
@@ -25,7 +25,7 @@
|
||||
group: "{{ git_user.group }}"
|
||||
mode: "700"
|
||||
|
||||
- name: Create Config Directory
|
||||
- name: Ensure config directory exists
|
||||
ansible.builtin.file:
|
||||
path: "/opt/gitea/config"
|
||||
state: directory
|
||||
@@ -33,7 +33,7 @@
|
||||
group: "{{ git_user.group }}"
|
||||
mode: "700"
|
||||
|
||||
- name: Start Docker Daemon
|
||||
- name: Ensure docker daemon is started
|
||||
ansible.builtin.systemd:
|
||||
name: docker
|
||||
enabled: true
|
||||
@@ -61,10 +61,10 @@
|
||||
notify:
|
||||
- Backup Gitea
|
||||
|
||||
- name: Execute Handlers before changing configfiles
|
||||
- name: Execute handlers before changing configfiles
|
||||
ansible.builtin.meta: flush_handlers
|
||||
|
||||
- name: Upload Environment File
|
||||
- name: Upload environment.env
|
||||
ansible.builtin.template:
|
||||
src: environment.env.j2
|
||||
dest: "/opt/gitea/environment.env"
|
||||
@@ -81,6 +81,6 @@
|
||||
owner: root
|
||||
mode: "600"
|
||||
notify:
|
||||
- Output Docker Compose State
|
||||
- Output docker compose state
|
||||
- Ensure Gitea is restarted
|
||||
- Wait until Gitea is up
|
||||
|
Reference in New Issue
Block a user