diff options
Diffstat (limited to 'test/integration/targets/systemd')
-rw-r--r-- | test/integration/targets/systemd/tasks/main.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/integration/targets/systemd/tasks/main.yml b/test/integration/targets/systemd/tasks/main.yml index 282988b356..1d98da8db7 100644 --- a/test/integration/targets/systemd/tasks/main.yml +++ b/test/integration/targets/systemd/tasks/main.yml @@ -72,4 +72,11 @@ - result is failed - result is search("Could not find the requested service {{ fake_service }}") + - name: check that the module works even when systemd is offline (eg in chroot) + systemd: + name: "{{ running_names.stdout_lines|random }}" + state: started + environment: + SYSTEMD_OFFLINE: 1 + when: 'systemctl_check.rc == 0' |