From f441fc5be4ac181ec3b5668e252020c40af73b68 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Wed, 13 Apr 2022 13:11:41 +0200 Subject: [PATCH] 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 --- tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/main.yml b/tasks/main.yml index 62080cb..b0a7216 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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