diff --git a/roles/docker/tasks/systemd.yml b/roles/docker/tasks/systemd.yml index 877de12997ae9f64abc3c284ba098db8dfadffe0..78cec33ccc7413e579125cc71d2eba41c50f2665 100644 --- a/roles/docker/tasks/systemd.yml +++ b/roles/docker/tasks/systemd.yml @@ -12,7 +12,7 @@ when: http_proxy is defined or https_proxy is defined - name: get systemd version - command: systemctl --version | head -n 1 | cut -d " " -f 2 + shell: systemctl --version | head -n 1 | cut -d " " -f 2 register: systemd_version when: not is_atomic changed_when: false