fix ansible_lint issues
Some checks failed
/ Ansible Lint (push) Failing after 48s

Use prefix for role variables, have an ending newline at the end of
files and use changed_when for command.
Also exclude *.sops.yaml files from ansible-lint.
This commit is contained in:
June 2025-10-13 17:43:00 +02:00
commit f943e95e2e
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0
5 changed files with 6 additions and 4 deletions

View file

@ -1,2 +1,2 @@
docker_compose__configuration_files: [ ]
docker_compose__restart_cmd: ""
docker_compose__restart_cmd: ""

View file

@ -9,4 +9,5 @@
cmd: /usr/bin/docker compose {{ docker_compose__restart_cmd }}
chdir: /ansible_docker_compose
become: true
changed_when: true # Mark this as always changed (for now?).
when: docker_compose__restart_cmd != ""