From caf3fb6e3eb0995ebc37620c1f6a4e6190535a1e Mon Sep 17 00:00:00 2001 From: Marius Alwan Meyer <22202402+sporqist@users.noreply.github.com> Date: Fri, 28 Apr 2023 22:17:06 +0000 Subject: [PATCH] make ansible-lint a little happier --- tasks/main.yaml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/tasks/main.yaml b/tasks/main.yaml index b7d457e..0783a4f 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -1,5 +1,3 @@ - ---- #- name: Install Dependencies # apt: # pkg: @@ -13,32 +11,32 @@ register: git_user - name: Create Gitea - file: + ansible.builtin.file: path: "/opt/gitea" state: directory owner: root - mode: 0755 + mode: "755" - name: Create Data Directory - file: + ansible.builtin.file: path: "/opt/gitea/data" state: directory owner: "{{ git_user.uid }}" group: "{{ git_user.group }}" - mode: 0700 + mode: "700" - name: Create Config Directory - file: + ansible.builtin.file: path: "/opt/gitea/config" state: directory owner: "{{ git_user.uid }}" group: "{{ git_user.group }}" - mode: 0700 + mode: "700" - name: Start Docker Daemon - systemd: + ansible.builtin.systemd: name: docker - enabled: yes + enabled: true state: started - name: Backup Files @@ -64,7 +62,7 @@ src: environment.env.j2 dest: "/opt/gitea/environment.env" owner: root - mode: 0600 + mode: "600" register: gitea_env - name: Upload docker-compose.yaml @@ -72,7 +70,7 @@ src: docker-compose.yaml.j2 dest: /opt/gitea/docker-compose.yaml owner: root - mode: 0600 + mode: "600" register: gitea_container - name: Create / Recreate Gitea