Files
computer-playbook/roles/web-app-bluesky/tasks/02_social_app.yml
Kevin Veen-Birkenbach a10ba78a5a Bluesky: update Ansible patches to use new geolocation module path
Replaced hardcoded path to src/state/geolocation.tsx with variable BLUESKY_GEOLOCATION_PATH pointing to src/state/geolocation/index.tsx.
This ensures BAPP_CONFIG_URL and IPCC_URL replacements work with the updated Bluesky code structure.

Ref: https://chatgpt.com/share/68cb16d5-d698-800f-97e5-cc7d9016f27c
2025-09-17 22:15:30 +02:00

22 lines
667 B
YAML

- name: clone social app repository
git:
repo: "https://github.com/bluesky-social/social-app.git"
dest: "{{ BLUESKY_SOCIAL_APP_DIR }}"
version: "main"
force: true
notify:
- docker compose up
- docker compose build
- name: Force BAPP_CONFIG_URL to same-origin /config
ansible.builtin.replace:
path: "{{ BLUESKY_GEOLOCATION_PATH }}"
regexp: '^\s*const\s+BAPP_CONFIG_URL\s*=\s*.*$'
replace: "const BAPP_CONFIG_URL = '/config'"
- name: Force IPCC_URL to same-origin /ipcc
ansible.builtin.replace:
path: "{{ BLUESKY_GEOLOCATION_PATH }}"
regexp: '^\s*const\s+IPCC_URL\s*=\s*.*$'
replace: "const IPCC_URL = '/ipcc'"