add fivem
All checks were successful
Deploy Containers / Prepare (push) Successful in 21s

This commit is contained in:
2025-10-09 11:43:32 -04:00
parent d1f35cc107
commit 43af41dd21
3 changed files with 98 additions and 65 deletions

27
tasks/fivem.yml Normal file
View File

@@ -0,0 +1,27 @@
---
- name: Create folder structure
file:
path: "{{ item }}"
state: directory
with_items:
- "{{ data_dir }}/fivem"
- name: Pull latest FiveM Docker Image
docker_image:
name: spritsail/fivem
tag: latest
source: pull
- name: Create FiveM Docker Container
docker_container:
name: fivem-server
image: spritsail/fivem:latest
restart_policy: unless-stopped
recreate: true
volumes:
- "{{ data_dir }}/fivem:/config"
env:
LICENSE_KEY: "{{ FIVEM_LICENSE_KEY }}"
published_ports:
- "30120:30120"
- "30120:30120/udp"