install_docker/handlers/main.yml

17 lines
369 B
YAML

---
# handlers file for install_docker
- name: "Enable docker service"
ansible.builtin.service:
name: docker
enabled: true
become: true
listen: "systemctl-enable-docker"
- name: "Reload docker service"
ansible.builtin.service:
name: docker
state: reloaded
become: true
listen: "systemctl-reload-docker"
when: install_docker_start_service