2025-01-09 09:00:09 +01:00
|
|
|
---
|
2025-01-17 19:33:28 +01:00
|
|
|
- name: "include docker/compose/common.yml"
|
|
|
|
include_tasks: docker/compose/common.yml
|
|
|
|
|
2025-01-17 17:26:52 +01:00
|
|
|
- name: "Include tasks for API domain"
|
2025-01-09 09:00:09 +01:00
|
|
|
include_tasks: nginx-docker-proxy-domain.yml
|
2025-01-17 17:26:52 +01:00
|
|
|
vars:
|
|
|
|
domain: "{{ domain_api }}"
|
|
|
|
http_port: "{{ http_port_api }}"
|
2025-01-09 09:00:09 +01:00
|
|
|
|
2025-01-17 17:26:52 +01:00
|
|
|
- name: "Include tasks for Web domain"
|
|
|
|
include_tasks: nginx-docker-proxy-domain.yml
|
|
|
|
vars:
|
|
|
|
domain: "{{ domain_web }}"
|
2025-01-17 20:47:42 +01:00
|
|
|
http_port: "{{ http_port_web }}"
|
|
|
|
|
|
|
|
# The following lines should be removed when the following issue is closed:
|
|
|
|
# https://github.com/bluesky-social/pds/issues/52
|
|
|
|
|
|
|
|
- name: Download pdsadmin tarball
|
|
|
|
get_url:
|
|
|
|
url: "https://github.com/lhaig/pdsadmin/releases/download/v1.0.0-dev/pdsadmin_Linux_x86_64.tar.gz"
|
|
|
|
dest: "{{pdsadmin_temporary_tar_path}}"
|
|
|
|
mode: '0644'
|
|
|
|
|
|
|
|
- name: Create {{pdsadmin_folder_path}}
|
|
|
|
file:
|
|
|
|
path: "{{pdsadmin_folder_path}}"
|
|
|
|
state: directory
|
|
|
|
mode: '0755'
|
|
|
|
|
|
|
|
- name: Extract pdsadmin tarball
|
|
|
|
unarchive:
|
|
|
|
src: "{{pdsadmin_temporary_tar_path}}"
|
|
|
|
dest: "{{pdsadmin_folder_path}}"
|
|
|
|
remote_src: yes
|
|
|
|
mode: '0755'
|
|
|
|
|
|
|
|
- name: Ensure pdsadmin is executable
|
|
|
|
file:
|
|
|
|
path: "{{pdsadmin_file_path}}"
|
|
|
|
mode: '0755'
|
|
|
|
state: file
|
2025-01-15 14:42:32 +01:00
|
|
|
|
2025-01-17 17:26:52 +01:00
|
|
|
- name: clone social app repository
|
|
|
|
git:
|
|
|
|
repo: "https://github.com/bluesky-social/social-app.git"
|
|
|
|
dest: "{{social_app_path}}"
|
2025-01-17 20:47:42 +01:00
|
|
|
version: "main"
|
2025-01-17 17:26:52 +01:00
|
|
|
notify: docker compose project build and setup
|
|
|
|
|
|
|
|
- name: add docker-compose.yml
|
|
|
|
template:
|
|
|
|
src: docker-compose.yml.j2
|
|
|
|
dest: "{{docker_compose_instance_directory}}docker-compose.yml"
|
|
|
|
notify: docker compose project build and setup
|