Add foundryvtt service
This commit is contained in:
parent
52c44da32e
commit
189f1972e2
8 changed files with 124 additions and 0 deletions
25
playbooks/roles/foundryvtt/tasks/main.yml
Normal file
25
playbooks/roles/foundryvtt/tasks/main.yml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue