infrastructure/playbooks/roles/foundryvtt/tasks/main.yml

25 lines
829 B
YAML

---
- name: Set common facts
ansible.builtin.include_tasks: "{{ tasks_dir }}/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.include_tasks: "{{ tasks_dir }}/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.include_tasks: "{{ tasks_dir }}/start-common-service.yml"