1
1
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_gitea.git synced 2024-08-16 11:39:50 +02:00

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:
L3D 2021-01-16 22:21:05 +01:00 committed by Thomas Maurice
parent aa75493677
commit fb45c4dfc5
2 changed files with 21 additions and 0 deletions

View 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]

View file

@ -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"