From fb45c4dfc5436db6486ded6faa63063813f32b43 Mon Sep 17 00:00:00 2001 From: L3D Date: Sat, 16 Jan 2021 22:21:05 +0100 Subject: [PATCH] add linting check and fix warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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! --- .github/workflows/ansible-linting-check.yml | 20 ++++++++++++++++++++ tasks/main.yml | 1 + 2 files changed, 21 insertions(+) create mode 100644 .github/workflows/ansible-linting-check.yml diff --git a/.github/workflows/ansible-linting-check.yml b/.github/workflows/ansible-linting-check.yml new file mode 100644 index 0000000..712c76f --- /dev/null +++ b/.github/workflows/ansible-linting-check.yml @@ -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] diff --git a/tasks/main.yml b/tasks/main.yml index 78e8ed5..b6a4db9 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -29,6 +29,7 @@ path: "{{ item }}" state: directory owner: "{{ gitea_user }}" + mode: '0755' recurse: True with_items: - "/etc/gitea"