Skip to content
Snippets Groups Projects
Commit 10950660 authored by Lukas Koenen's avatar Lukas Koenen
Browse files

fix: docker check

parent c49c3257
Branches
No related tags found
No related merge requests found
Pipeline #134692 failed
---
- name: Ensure Docker Is Installed
block:
- name: Fetch Package Facts
ansible.builtin.package_facts:
manager: auto
- name: Check Docker Package Exists
ansible.builtin.fail:
msg: Missing Docker Installation
when: "'docker' not in ansible_facts.packages"
ansible.builtin.command:
cmd: docker run --rm hello-world:latest
register: docker_output
failed_when: docker_output.rc != 0
- name: Render Systemd-Unit File
ansible.builtin.template:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment