Track workers endpoint list in repo instead of regenerating on user side

This commit is contained in:
Marcel Partap
2021-01-23 14:34:41 +01:00
parent f2c7d79238
commit c8f051a42d
4 changed files with 314 additions and 18 deletions

View File

@ -1,21 +1,5 @@
---
- name: Download synapse workers doc
local_action:
module: get_url
url: https://github.com/matrix-org/synapse/raw/master/docs/workers.md
dest: "{{ role_path }}/files/workers.upstream-documentation.md"
vars:
ansible_become: no
- name: Download synapse workers doc and convert into YAML
local_action:
module: shell
cmd: "awk -f '{{ role_path }}/files/workers-doc-to-yaml.awk' -- '{{ role_path }}/files/workers.upstream-documentation.md' > '{{ role_path }}/vars/workers.yml'"
creates: "{{ role_path }}/vars/workers.yml"
vars:
ansible_become: no
- name: Load list of available worker apps and endpoints
include_vars: "{{ role_path }}/vars/workers.yml"