From 2500047d2294c9e6f04a52b094a7dd8218e29c44 Mon Sep 17 00:00:00 2001 From: L3D Date: Sat, 16 Jan 2021 22:36:41 +0100 Subject: [PATCH] improve all easy to fix yaml warnings --- .github/workflows/ansible-linting-check.yml | 20 +++++++++++--------- tasks/install_systemd.yml | 3 ++- tasks/main.yml | 2 +- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ansible-linting-check.yml b/.github/workflows/ansible-linting-check.yml index 712c76f..3a590c6 100644 --- a/.github/workflows/ansible-linting-check.yml +++ b/.github/workflows/ansible-linting-check.yml @@ -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] diff --git a/tasks/install_systemd.yml b/tasks/install_systemd.yml index 6607472..4079aac 100644 --- a/tasks/install_systemd.yml +++ b/tasks/install_systemd.yml @@ -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 diff --git a/tasks/main.yml b/tasks/main.yml index b6a4db9..7701a4b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -30,7 +30,7 @@ state: directory owner: "{{ gitea_user }}" mode: '0755' - recurse: True + recurse: true with_items: - "/etc/gitea" - "{{ gitea_home }}"