aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/docker/tasks/logging.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/docker/tasks/logging.yml')
-rw-r--r--roles/docker/tasks/logging.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/docker/tasks/logging.yml b/roles/docker/tasks/logging.yml
index f93efa0..27e78d4 100644
--- a/roles/docker/tasks/logging.yml
+++ b/roles/docker/tasks/logging.yml
@@ -43,7 +43,7 @@
- name: Restart Docker service
when: |
- 'docker' in ansible_facts.services and ansible_facts.services.docker.state == 'running'
+ 'docker.service' in ansible_facts.services and ansible_facts.services['docker.service'].state == 'running'
ansible.builtin.systemd_service:
name: docker
state: restarted