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:
parent
9b8e14f3c4
commit
f943e95e2e
5 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue