From 5ac073fc114d71964078fd4c1dd6a220d72b8251 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Tue, 30 Jan 2024 17:31:29 +0000 Subject: [PATCH] use ansible-lint action --- .ansible-lint | 6 ++++++ .github/workflows/infra.yaml | 5 ++--- infra/music/music/docker-compose.yml | 2 +- infra/photos/immich/docker-compose.yml | 4 ++-- infra/samba/samba/config.yml | 10 +++++----- 5 files changed, 16 insertions(+), 11 deletions(-) create mode 100644 .ansible-lint diff --git a/.ansible-lint b/.ansible-lint new file mode 100644 index 0000000..6d94bb9 --- /dev/null +++ b/.ansible-lint @@ -0,0 +1,6 @@ +strict: true +use_default_rules: true +skip_list: + - args[module] +exclude_paths: + - "!infra/**/*playbook.yaml" diff --git a/.github/workflows/infra.yaml b/.github/workflows/infra.yaml index 976ea11..13e1420 100644 --- a/.github/workflows/infra.yaml +++ b/.github/workflows/infra.yaml @@ -31,9 +31,8 @@ jobs: pip3 install -r requirements.txt ansible-galaxy collection install community.general community.docker infisical.vault --force - - name: Ansible lint - run: | - ansible-lint -s -x args[module] infra/**/*playbook.yaml + - name: Run ansible-lint + uses: ansible/ansible-lint@v6 - name: Check playbooks run: | diff --git a/infra/music/music/docker-compose.yml b/infra/music/music/docker-compose.yml index 206a624..bb7d67f 100644 --- a/infra/music/music/docker-compose.yml +++ b/infra/music/music/docker-compose.yml @@ -49,4 +49,4 @@ services: volumes: - /mnt/nvme/filebrowser:/config - /mnt/media/downloads:/srv/downloads - - /mnt/media/music:/srv/music \ No newline at end of file + - /mnt/media/music:/srv/music diff --git a/infra/photos/immich/docker-compose.yml b/infra/photos/immich/docker-compose.yml index 93a2bb4..6cbeda2 100644 --- a/infra/photos/immich/docker-compose.yml +++ b/infra/photos/immich/docker-compose.yml @@ -4,7 +4,7 @@ services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} - command: [ "start.sh", "immich" ] + command: ["start.sh", "immich"] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload env_file: @@ -22,7 +22,7 @@ services: # extends: # file: hwaccel.yml # service: hwaccel - command: [ "start.sh", "microservices" ] + command: ["start.sh", "microservices"] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload env_file: diff --git a/infra/samba/samba/config.yml b/infra/samba/samba/config.yml index 70974af..0c577f1 100644 --- a/infra/samba/samba/config.yml +++ b/infra/samba/samba/config.yml @@ -15,12 +15,12 @@ global: - "force group = debian" share: - - name: kvkbackups + - name: kvkbackups comment: KVK Backups path: /samba/kvkbackups validusers: kvk writelist: kvk - browsable: yes - readonly: no - guestok: no - veto: no + browsable: true + readonly: false + guestok: false + veto: false