fix ansible-lint errors

This commit is contained in:
Sergey Malyuk
2025-12-18 16:06:21 +03:00
parent bd4cc73cbb
commit 23e388876f
9 changed files with 32 additions and 32 deletions

View File

@@ -9,11 +9,11 @@
- name: "Ensure that metr1c is installed and able to run"
ansible.builtin.command:
cmd: /opt/metr1c/metr1c -version
register: cmd1
register: metr1c_cmd1
changed_when: false
- name: "Check metr1c version"
ansible.builtin.assert:
that: "'{{ metr1c_version }}' in cmd1.stdout"
that: "'{{ metr1c_version }}' in metr1c_cmd1.stdout"
success_msg: "metr1c version {{ metr1c_version }} is installed and working"
fail_msg: "metr1c version {{ metr1c_version }} is not installed or not working correctly"