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

25 lines
788 B
YAML

---
- 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