Quellcode durchsuchen

synapse role workers setup: execute the endpoint extraction locally

Thanks @maxklenk !
pull/456/head
Marcel Partap vor 5 Jahren
Ursprung
Commit
d5932ca393
1 geänderte Dateien mit 8 neuen und 2 gelöschten Zeilen
  1. +8
    -2
      roles/matrix-synapse/tasks/workers/setup_install.yml

+ 8
- 2
roles/matrix-synapse/tasks/workers/setup_install.yml Datei anzeigen

@@ -1,14 +1,20 @@
--- ---


- name: Download synapse workers doc - name: Download synapse workers doc
get_url:
local_action:
module: get_url
url: https://github.com/matrix-org/synapse/raw/master/docs/workers.md url: https://github.com/matrix-org/synapse/raw/master/docs/workers.md
dest: "{{ role_path }}/files/workers.upstream-documentation.md" dest: "{{ role_path }}/files/workers.upstream-documentation.md"
vars:
ansible_become: no


- name: Download synapse workers doc and convert into YAML - name: Download synapse workers doc and convert into YAML
shell:
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'" 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" creates: "{{ role_path }}/vars/workers.yml"
vars:
ansible_become: no


- name: Load list of available worker apps and endpoints - name: Load list of available worker apps and endpoints
include_vars: "{{ role_path }}/vars/workers.yml" include_vars: "{{ role_path }}/vars/workers.yml"


Laden…
Abbrechen
Speichern