From ad61d93ea438b3eaf1524adf5e14f88f0cb142f0 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 23 Sep 2023 10:27:00 +0200 Subject: docker: fix service name --- roles/docker/tasks/logging.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3