improve all easy to fix yaml warnings
This commit is contained in:
parent
fb45c4dfc5
commit
2500047d22
3 changed files with 14 additions and 11 deletions
20
.github/workflows/ansible-linting-check.yml
vendored
20
.github/workflows/ansible-linting-check.yml
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
name: Ansible Lint check
|
name: Ansible Lint check
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
@ -8,13 +9,14 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Lint Ansible Playbook
|
- uses: actions/checkout@v2
|
||||||
uses: ansible/ansible-lint-action@master
|
|
||||||
with:
|
- name: Lint Ansible Playbook
|
||||||
targets: "."
|
uses: ansible/ansible-lint-action@master
|
||||||
# [required]
|
with:
|
||||||
# Paths to ansible files (i.e., playbooks, tasks, handlers etc..)
|
targets: "."
|
||||||
args: ""
|
# [required]
|
||||||
# [optional]
|
# Paths to ansible files (i.e., playbooks, tasks, handlers etc..)
|
||||||
|
args: ""
|
||||||
|
# [optional]
|
||||||
|
|
|
@ -10,7 +10,8 @@
|
||||||
- "Reload systemd"
|
- "Reload systemd"
|
||||||
- "Restart gitea"
|
- "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"
|
- name: "Reload systemd"
|
||||||
systemd:
|
systemd:
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ gitea_user }}"
|
owner: "{{ gitea_user }}"
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
recurse: True
|
recurse: true
|
||||||
with_items:
|
with_items:
|
||||||
- "/etc/gitea"
|
- "/etc/gitea"
|
||||||
- "{{ gitea_home }}"
|
- "{{ gitea_home }}"
|
||||||
|
|
Loading…
Reference in a new issue