improve all easy to fix yaml warnings

This commit is contained in:
L3D 2021-01-16 22:36:41 +01:00 committed by Thomas Maurice
parent fb45c4dfc5
commit 2500047d22
3 changed files with 14 additions and 11 deletions

View file

@ -1,3 +1,4 @@
---
name: Ansible Lint check
on: [push, pull_request]
@ -8,13 +9,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Lint Ansible Playbook
uses: ansible/ansible-lint-action@master
with:
targets: "."
# [required]
# Paths to ansible files (i.e., playbooks, tasks, handlers etc..)
args: ""
# [optional]
- uses: actions/checkout@v2
- name: Lint Ansible Playbook
uses: ansible/ansible-lint-action@master
with:
targets: "."
# [required]
# Paths to ansible files (i.e., playbooks, tasks, handlers etc..)
args: ""
# [optional]

View file

@ -10,7 +10,8 @@
- "Reload systemd"
- "Restart gitea"
# systemd to be reloaded the first time because it is the only way Systemd is going to be aware of the new unit file.
# systemd to be reloaded the first time because
# it is the only way Systemd is going to be aware of the new unit file.
- name: "Reload systemd"
systemd:
daemon_reload: true

View file

@ -30,7 +30,7 @@
state: directory
owner: "{{ gitea_user }}"
mode: '0755'
recurse: True
recurse: true
with_items:
- "/etc/gitea"
- "{{ gitea_home }}"