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:
@@ -12,13 +12,13 @@ This Ansible role automates the deployment of Gitea - a self-hosted Git service,
|
||||
|
||||
## Requirements
|
||||
|
||||
- Docker and Docker Compose installed on the target host
|
||||
- jmespath Python library (install with: `pip install jmespath`)
|
||||
|
||||
## Sample Usage in a Playbook
|
||||
The following playbook was tested on the latest Debian 12, it should work on Ubuntu as well.
|
||||
|
||||
```yaml
|
||||
# Installs Docker and Compose if not available
|
||||
- name: Install Gitea using Docker Compose
|
||||
hosts: git.example.com
|
||||
become: yes
|
||||
|
||||
@@ -17,6 +17,4 @@ galaxy_info:
|
||||
- gitserver
|
||||
- selfhosted
|
||||
|
||||
dependencies:
|
||||
- role: geerlingguy.docker
|
||||
version: "7.8.0"
|
||||
dependencies: []
|
||||
|
||||
@@ -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
|
||||
ansible.builtin.file:
|
||||
path: "{{ gitea_home_path }}"
|
||||
|
||||
Reference in New Issue
Block a user