Первая версия

This commit is contained in:
B4D_US3R 2025-12-24 10:19:12 +05:00
commit 0da0cfd3f9
9 changed files with 164 additions and 0 deletions

17
roles/factorio/tasks/main.yml Executable file
View file

@ -0,0 +1,17 @@
- name: Create /opt/beget/factorio
ansible.builtin.file:
path: /opt/beget/factorio/factorio_data
state: directory
mode: "700"
recurse: true
- name: Copy template to server
ansible.builtin.template:
src: docker-compose.yml.j2
dest: /opt/beget/factorio/docker-compose.yml
mode: "600"
- name: Start factorio server
community.docker.docker_compose_v2:
project_src: /opt/beget/factorio
state: present

View file

@ -0,0 +1,13 @@
version: "3.8"
services:
factorio:
image: factoriotools/factorio:latest
restart: always
environment:
DLC_SPACE_AGE: "false"
ports:
- "34197:34197/udp"
- "27015:27015/tcp"
volumes:
- ./factorio_data:/factorio