Pass systemd_service role in check mode

In order to pass check mode we should get get_systemd_version
regardles of mode with command. It is not a breaking change and safe to
run anytime.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/837706
Change-Id: I9ce85a091e3328d7215665ac308f2980537ce921
This commit is contained in:
Dmitriy Rabotyagov 2022-04-13 13:11:41 +02:00 committed by Dmitriy Rabotyagov
parent fcd5233302
commit f441fc5be4
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@
command: "systemctl --version"
changed_when: false
register: get_systemd_version
check_mode: no
tags:
# Avoid ANSIBLE0006 lint issue: systemctl used in place of systemd module
- skip_ansible_lint