add linting check and fix warning
There is this linting message: ``` [208] File permissions unset or incorrect tasks/main.yml:27 Task/Handler: Create config and data directory ``` I fixed it in this commit and added a github action to run the official™ ansible linting check!
This commit is contained in:
parent
aa75493677
commit
fb45c4dfc5
2 changed files with 21 additions and 0 deletions
20
.github/workflows/ansible-linting-check.yml
vendored
Normal file
20
.github/workflows/ansible-linting-check.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
name: Ansible Lint check
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
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]
|
|
@ -29,6 +29,7 @@
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ gitea_user }}"
|
owner: "{{ gitea_user }}"
|
||||||
|
mode: '0755'
|
||||||
recurse: True
|
recurse: True
|
||||||
with_items:
|
with_items:
|
||||||
- "/etc/gitea"
|
- "/etc/gitea"
|
||||||
|
|
Loading…
Reference in a new issue