Skip to content

Instantly share code, notes, and snippets.

@HauptJ
Last active April 11, 2026 00:50
Show Gist options
  • Select an option

  • Save HauptJ/4e7917ecb7f7b48d606c559e831029ff to your computer and use it in GitHub Desktop.

Select an option

Save HauptJ/4e7917ecb7f7b48d606c559e831029ff to your computer and use it in GitHub Desktop.
#!/usr/bin/env ansible-playbook
---
- name: Install Docker on Ubuntu
hosts: localhost
become: true
vars:
pre_task_pkgs:
- make
- jq
- yq
- git
- openssl
- python3
- python3-pip
docker_users:
- ubuntu # Update with your Linux username
docker_install_compose: true
pre_tasks:
- name: Install pre task packages
ansible.builtin.package:
name: "{{ item }}"
state: present
loop: "{{ pre_task_pkgs }}"
roles:
- geerlingguy.docker
---
roles:
- name: geerlingguy.docker
version: 8.0.0
@HauptJ
Copy link
Copy Markdown
Author

HauptJ commented Apr 10, 2026

ansible-galaxy install -r requirements.yml

@BMatze
Copy link
Copy Markdown

BMatze commented Apr 11, 2026

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment