Просмотр исходного кода

Merge pull request #21 from Cadair/flags

Allow specifying which parts of the role run from playbooks
pull/27/head
Slavi Pantaleev 7 лет назад
committed by GitHub
Родитель
Сommit
ac8d5a839d
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: 4AEE18F83AFDEB23
2 измененных файлов: 16 добавлений и 0 удалений
  1. +9
    -0
      roles/matrix-server/defaults/main.yml
  2. +7
    -0
      roles/matrix-server/tasks/main.yml

+ 9
- 0
roles/matrix-server/defaults/main.yml Просмотреть файл

@@ -304,3 +304,12 @@ matrix_ssl_use_staging: false

# Specifies when to attempt to retrieve new SSL certificates from Let's Encrypt.
matrix_ssl_renew_cron_time_definition: "15 4 */5 * *"

# Variables to Control which parts of the role run.
run_setup: true
run_upgrade_postgres: true
run_start: true
run_register_user: true
run_import_sqlite_db: true
run_import_media_store: true
run_self_check: true

+ 7
- 0
roles/matrix-server/tasks/main.yml Просмотреть файл

@@ -1,29 +1,36 @@
---

- include: tasks/setup/main.yml
when: run_setup

- include: tasks/upgrade_postgres.yml
tags:
- upgrade-postgres
when: run_upgrade_postgres

- include: tasks/start.yml
tags:
- start
when: run_start

- include: tasks/register_user.yml
tags:
- register-user
when: run_register_user

- include: tasks/import_sqlite_db.yml
tags:
- import-sqlite-db
when: run_import_sqlite_db

- include: tasks/import_media_store.yml
tags:
- import-media-store
when: run_import_media_store

- include: tasks/self_check/main.yml
delegate_to: 127.0.0.1
become: false
tags:
- self-check
when: run_self_check

Загрузка…
Отмена
Сохранить