mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2025-09-07 17:52:30 +02:00
- Replaces deprecated apt_repository and manual GPG key management with ansible.builtin.deb822_repository, introduced in apt 1.1. - Updates handlers to use FQCNs.
12 lines
266 B
YAML
12 lines
266 B
YAML
---
|
|
- name: restart docker
|
|
ansible.builtin.service:
|
|
name: docker
|
|
state: "{{ docker_restart_handler_state }}"
|
|
ignore_errors: "{{ ansible_check_mode }}"
|
|
when: docker_service_manage | bool
|
|
|
|
- name: apt update
|
|
ansible.builtin.apt:
|
|
update_cache: true
|