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:
parent
fcd5233302
commit
f441fc5be4
@ -17,6 +17,7 @@
|
|||||||
command: "systemctl --version"
|
command: "systemctl --version"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
register: get_systemd_version
|
register: get_systemd_version
|
||||||
|
check_mode: no
|
||||||
tags:
|
tags:
|
||||||
# Avoid ANSIBLE0006 lint issue: systemctl used in place of systemd module
|
# Avoid ANSIBLE0006 lint issue: systemctl used in place of systemd module
|
||||||
- skip_ansible_lint
|
- skip_ansible_lint
|
||||||
|
Loading…
Reference in New Issue
Block a user