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
|
## 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
|
||||||
|
|||||||
@@ -17,6 +17,4 @@ galaxy_info:
|
|||||||
- gitserver
|
- gitserver
|
||||||
- selfhosted
|
- selfhosted
|
||||||
|
|
||||||
dependencies:
|
dependencies: []
|
||||||
- role: geerlingguy.docker
|
|
||||||
version: "7.8.0"
|
|
||||||
|
|||||||
@@ -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 }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user