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

@ -27,8 +27,8 @@
mv /etc/ssh/moduli.tmp /etc/ssh/moduli
echo "ansible-changed: changed /etc/ssh/moduli"
fi
register: result
register: deploy_ssh_server_config__result
changed_when:
- '"ansible-changed" in result.stdout'
- '"ansible-changed" in deploy_ssh_server_config__result.stdout'
notify:
- restart the ssh service