Add foundryvtt service

This commit is contained in:
Tobias Reisinger 2026-06-24 21:27:57 +02:00
parent 52c44da32e
commit 189f1972e2
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
8 changed files with 124 additions and 0 deletions

View file

@ -0,0 +1,25 @@
---
- name: Set common facts
ansible.builtin.import_tasks: tasks/set-default-facts.yml
- name: Deploy {{ service_name }}
vars:
svc: "{{ foundryvtt_svc }}"
env: "{{ foundryvtt_env }}"
compose: "{{ foundryvtt_compose }}"
block:
- name: Import prepare tasks for common service
ansible.builtin.import_tasks: tasks/prepare-common-service.yml
- name: Create aws config
ansible.builtin.copy:
dest: "{{ (service_path, 'aws.json') | path_join }}"
content: "{{ foundryvtt_aws_config | to_json }}"
owner: 1000
group: 1000
mode: 0644
become: true
notify: Restart service {{ service_name }}
- name: Import start tasks for common service
ansible.builtin.import_tasks: tasks/start-common-service.yml