Last active
April 11, 2026 00:50
-
-
Save HauptJ/4e7917ecb7f7b48d606c559e831029ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| roles: | |
| - name: geerlingguy.docker | |
| version: 8.0.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

ansible-galaxy install -r requirements.yml