add docker_ubuntu role

This commit is contained in:
Sergey Malyuk
2025-12-18 15:09:10 +03:00
parent c7d5c4bf59
commit 2c0224566e
10 changed files with 217 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
---
# handlers file for playbooks/roles/docker_ubuntu
- name: "Restart Docker daemon"
ansible.builtin.systemd_service:
name: docker
state: restarted
daemon_reload: true
- name: "Sanity check" # noqa: no-changed-when
ansible.builtin.command:
cmd: "docker run --rm --pull=always hello-world"