39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
---
|
|
- name: Set up wizarr
|
|
hosts: streaming_services
|
|
become: true
|
|
tasks:
|
|
- name: Create app DB
|
|
ansible.builtin.include_tasks:
|
|
file: '../tasks/create_app_db.yml'
|
|
vars:
|
|
app: wizarr
|
|
|
|
- name: Make sure UUID PG extension is installed
|
|
ansible.builtin.include_tasks:
|
|
file: '../tasks/postgres/install_extension.yml'
|
|
vars:
|
|
extension: uuid-ossp
|
|
database: wizarr
|
|
|
|
- name: Ensure config directories exist
|
|
ansible.builtin.file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
mode: '0777'
|
|
loop:
|
|
- '/home/docker/wizarr'
|
|
- '/home/javi/docker/wizarr'
|
|
|
|
- name: Copy docker-compose.yml to server
|
|
ansible.builtin.copy:
|
|
src: '../docker/wizarr/docker-compose.yml'
|
|
dest: '/home/javi/docker/wizarr/docker-compose.yml'
|
|
owner: javi
|
|
group: javi
|
|
mode: '0777'
|
|
|
|
- name: Start up the containers
|
|
ansible.builtin.command: docker compose up -d
|
|
args:
|
|
chdir: /home/javi/docker/wizarr |