Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.

User docker system package #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ Optional:
- `minio_s3_gateway_bucket`: The bucket to use in the helper scripts if `minio_s3_gateway_install_client` is enabled, default `test`
- `minio_s3_gateway_placeholder_content`: Content of a `README.txt` file that is copied to a new subdirectory if `minio_s3_gateway_install_client` is enabled
- `minio_s3_gateway_port`: Listen on this port, default `9000`
- `docker_version`: The version of Python library for the Docker Engine API, default `7.0.0`


Example Playbook
Expand Down
2 changes: 0 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ minio_s3_gateway_placeholder_content: "Hello!"

minio_s3_gateway_port: 9000

docker_version: 7.0.0

######################################################################
# Expert users only!
######################################################################
Expand Down
19 changes: 16 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,24 @@
# minio S3 gateway with custom users in front of an external S3 store
# https://github.com/minio/minio/issues/8045


- name: Import a key for epel
ansible.builtin.rpm_key:
state: present
key: https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-9

- name: Setup dnf repository, epel
become: true
ansible.builtin.dnf:
update_cache: true
name:
https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
state: present

- name: Install docker
become: true
ansible.builtin.pip:
name: docker
version: "{{ docker_version }}"
ansible.builtin.dnf:
name: python3-docker
state: present

- name: Create docker network
Expand Down