diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-09-23 10:27:00 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-09-23 10:27:00 +0200 |
commit | ad61d93ea438b3eaf1524adf5e14f88f0cb142f0 (patch) | |
tree | 6d2f7206bc6009648d1b2ecc73662dc560f0ec89 /roles | |
parent | linux_status: get rid of unnecessary service restarts, etc. (diff) | |
download | infra-ansible-ad61d93ea438b3eaf1524adf5e14f88f0cb142f0.tar.gz infra-ansible-ad61d93ea438b3eaf1524adf5e14f88f0cb142f0.zip |
docker: fix service name
Diffstat (limited to 'roles')
-rw-r--r-- | roles/docker/tasks/logging.yml | 2 |
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 |