refactor: remove geerlingguy.docker dependency

Assume Docker and Docker Compose are already installed on the target
host. This decouples the role from a specific Docker installation
method; avoiding conflicts with existing setups.
This commit is contained in:
2026-04-16 07:53:47 -04:00
parent ddd19f685a
commit 8fc764db49
3 changed files with 2 additions and 8 deletions

View File

@@ -12,13 +12,13 @@ This Ansible role automates the deployment of Gitea - a self-hosted Git service,
## Requirements ## Requirements
- Docker and Docker Compose installed on the target host
- jmespath Python library (install with: `pip install jmespath`) - jmespath Python library (install with: `pip install jmespath`)
## Sample Usage in a Playbook ## Sample Usage in a Playbook
The following playbook was tested on the latest Debian 12, it should work on Ubuntu as well. The following playbook was tested on the latest Debian 12, it should work on Ubuntu as well.
```yaml ```yaml
# Installs Docker and Compose if not available
- name: Install Gitea using Docker Compose - name: Install Gitea using Docker Compose
hosts: git.example.com hosts: git.example.com
become: yes become: yes

View File

@@ -17,6 +17,4 @@ galaxy_info:
- gitserver - gitserver
- selfhosted - selfhosted
dependencies: dependencies: []
- role: geerlingguy.docker
version: "7.8.0"

View File

@@ -1,8 +1,4 @@
--- ---
- name: Set up Docker and Docker compose
ansible.builtin.include_role:
name: geerlingguy.docker
- name: Create directory for Gitea Docker Compose stack - name: Create directory for Gitea Docker Compose stack
ansible.builtin.file: ansible.builtin.file:
path: "{{ gitea_home_path }}" path: "{{ gitea_home_path }}"