make ansible-lint a little happier
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 12s

This commit is contained in:
Marius Alwan Meyer 2023-04-28 22:17:06 +00:00
parent c900fefb03
commit caf3fb6e3e

View File

@ -1,5 +1,3 @@
---
#- name: Install Dependencies #- name: Install Dependencies
# apt: # apt:
# pkg: # pkg:
@ -13,32 +11,32 @@
register: git_user register: git_user
- name: Create Gitea - name: Create Gitea
file: ansible.builtin.file:
path: "/opt/gitea" path: "/opt/gitea"
state: directory state: directory
owner: root owner: root
mode: 0755 mode: "755"
- name: Create Data Directory - name: Create Data Directory
file: ansible.builtin.file:
path: "/opt/gitea/data" path: "/opt/gitea/data"
state: directory state: directory
owner: "{{ git_user.uid }}" owner: "{{ git_user.uid }}"
group: "{{ git_user.group }}" group: "{{ git_user.group }}"
mode: 0700 mode: "700"
- name: Create Config Directory - name: Create Config Directory
file: ansible.builtin.file:
path: "/opt/gitea/config" path: "/opt/gitea/config"
state: directory state: directory
owner: "{{ git_user.uid }}" owner: "{{ git_user.uid }}"
group: "{{ git_user.group }}" group: "{{ git_user.group }}"
mode: 0700 mode: "700"
- name: Start Docker Daemon - name: Start Docker Daemon
systemd: ansible.builtin.systemd:
name: docker name: docker
enabled: yes enabled: true
state: started state: started
- name: Backup Files - name: Backup Files
@ -64,7 +62,7 @@
src: environment.env.j2 src: environment.env.j2
dest: "/opt/gitea/environment.env" dest: "/opt/gitea/environment.env"
owner: root owner: root
mode: 0600 mode: "600"
register: gitea_env register: gitea_env
- name: Upload docker-compose.yaml - name: Upload docker-compose.yaml
@ -72,7 +70,7 @@
src: docker-compose.yaml.j2 src: docker-compose.yaml.j2
dest: /opt/gitea/docker-compose.yaml dest: /opt/gitea/docker-compose.yaml
owner: root owner: root
mode: 0600 mode: "600"
register: gitea_container register: gitea_container
- name: Create / Recreate Gitea - name: Create / Recreate Gitea