2022-03-16 04:52:23 +00:00
|
|
|
---
|
|
|
|
- name: Setup Foundry
|
|
|
|
|
|
|
|
hosts: all
|
|
|
|
|
|
|
|
vars_files:
|
|
|
|
- vault.yaml
|
|
|
|
- vars.yaml
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
- name: Create Foundry data folder
|
|
|
|
file:
|
|
|
|
path: /home/server/foundry_data
|
|
|
|
state: directory
|
|
|
|
|
2024-04-01 13:26:05 +00:00
|
|
|
- name: Create Foundry install folder
|
|
|
|
file:
|
|
|
|
path: /home/server/foundry_data
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: Send Foundry Container Cache
|
|
|
|
copy:
|
|
|
|
src: ./foundry_container_cache
|
|
|
|
dest: /home/server
|
|
|
|
|
2022-03-16 04:52:23 +00:00
|
|
|
- name: Run Foundry
|
|
|
|
docker_container:
|
|
|
|
name: "{{ stack_prefix_name }}foundry"
|
|
|
|
recreate: true
|
|
|
|
restart_policy: unless-stopped
|
2024-04-01 13:26:05 +00:00
|
|
|
image: ghcr.io/felddy/foundryvtt:release
|
2022-03-16 04:52:23 +00:00
|
|
|
hostname: foundry.gopoop.org
|
|
|
|
init: yes
|
|
|
|
env:
|
2024-04-01 13:26:05 +00:00
|
|
|
FOUNDRY_IP_DISCOVERY: "false"
|
|
|
|
CONTAINER_VERBOSE: "true"
|
2022-03-16 04:52:23 +00:00
|
|
|
FOUNDRY_ADMIN_KEY: "{{ secret_foundry_admin_key }}"
|
2024-04-01 13:26:05 +00:00
|
|
|
FOUNDRY_LICENSE_KEY: "{{ secret_foundry_license_key }}"
|
|
|
|
FOUNDRY_CSS_THEME: "fantasy"
|
|
|
|
FOUNDRY_VERSION: "11.315"
|
2022-03-16 04:52:23 +00:00
|
|
|
networks:
|
|
|
|
- name: "{{ stack_prefix_name }}{{ docker_internal_network }}"
|
|
|
|
# Foundry needs to talk to the outside world to validate the license.
|
|
|
|
- name: "{{ stack_prefix_name }}{{ docker_external_network }}"
|
|
|
|
mounts:
|
|
|
|
- target: /data
|
|
|
|
source: /home/server/foundry_data
|
|
|
|
type: bind
|
2024-04-01 13:26:05 +00:00
|
|
|
- target: /data/container_cache
|
|
|
|
source: /home/server/foundry_container_cache
|
|
|
|
type: bind
|
2022-03-16 04:52:23 +00:00
|
|
|
state: "{{ container_state }}"
|
2022-08-05 18:10:13 +00:00
|
|
|
|
|
|
|
- name: Create Foundry 2 data folder
|
|
|
|
file:
|
|
|
|
path: /home/server/foundry_2_data
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: Run Foundry 2
|
|
|
|
docker_container:
|
|
|
|
name: "{{ stack_prefix_name }}foundry_2"
|
|
|
|
recreate: true
|
|
|
|
restart_policy: unless-stopped
|
2024-04-01 13:26:05 +00:00
|
|
|
image: ghcr.io/felddy/foundryvtt:release
|
2022-08-05 18:10:13 +00:00
|
|
|
hostname: foundry2.gopoop.org
|
|
|
|
init: yes
|
|
|
|
env:
|
2024-04-01 13:26:05 +00:00
|
|
|
FOUNDRY_IP_DISCOVERY: "false"
|
|
|
|
CONTAINER_VERBOSE: "true"
|
2022-08-05 18:10:13 +00:00
|
|
|
FOUNDRY_ADMIN_KEY: "{{ secret_foundry_2_admin_key }}"
|
2024-04-01 13:26:05 +00:00
|
|
|
FOUNDRY_LICENSE_KEY: "{{ secret_foundry_2_license_key }}"
|
|
|
|
FOUNDRY_CSS_THEME: "fantasy"
|
|
|
|
FOUNDRY_VERSION: "10.291"
|
2022-08-05 18:10:13 +00:00
|
|
|
networks:
|
|
|
|
- name: "{{ stack_prefix_name }}{{ docker_internal_network }}"
|
|
|
|
# Foundry needs to talk to the outside world to validate the license.
|
|
|
|
- name: "{{ stack_prefix_name }}{{ docker_external_network }}"
|
|
|
|
mounts:
|
|
|
|
- target: /data
|
|
|
|
source: /home/server/foundry_2_data
|
|
|
|
type: bind
|
2024-04-01 13:26:05 +00:00
|
|
|
- target: /data/container_cache
|
|
|
|
source: /home/server/foundry_container_cache
|
|
|
|
type: bind
|
2022-08-05 18:10:13 +00:00
|
|
|
state: "{{ container_state }}"
|