blob: 1810b19b842b750fbf66fbfeb53ca1a3900936fe (
plain) (
tree)
|
|
- name: Collect service facts
ansible.builtin.service_facts:
listen: docker_configured
- name: Restart Docker service
become: true
when: |
'docker.service' in ansible_facts.services and ansible_facts.services['docker.service'].state == 'running'
ansible.builtin.systemd_service:
name: docker
state: restarted
listen: docker_configured
|