Przeglądaj źródła

Matrix Setup mittels Ansible #510

- etckeeper

https://github.com/BiP-org/bip-infrastructure/issues/510
pull/4247/head
Georg Glas 1 rok temu
rodzic
commit
3fdcb17276
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 155A74F427A1E404
2 zmienionych plików z 14 dodań i 1 usunięć
  1. +1
    -0
      .gitignore
  2. +13
    -1
      setup.yml

+ 1
- 0
.gitignore Wyświetl plik

@@ -10,3 +10,4 @@
!/roles/galaxy/.gitkeep
/setup.retry
/setup.yml~
/*.log

+ 13
- 1
setup.yml Wyświetl plik

@@ -12,7 +12,12 @@
- name: "Set up a Matrix server"
hosts: "{{ target if target is defined else 'matrix_servers' }}"
become: true

pre_tasks:
- { name: push etckeeper, include_role: { name: "org-eu-glas.common-etckeeper", tasks_from: "push.yml"} , vars: { common_etckeeper_message: "{{ inventory_hostname }}: saving uncommitted changes in /etc before deploying role: {{ ansible_play_role_names|join(',') }} {{ common_etckeeper_revision_url }} {% if common_etckeeper_issue is defined and common_etckeeper_issue_url is defined %}{{common_etckeeper_issue_url}}{{ common_etckeeper_issue }}{% endif %}" }, when: __common_etckeeper_role_exists|length >0, tags: [always]}
post_tasks:
- { name: push etckeeper, include_role: { name: "org-eu-glas.common-etckeeper", tasks_from: "push.yml"} , vars: { common_etckeeper_message: "{{ inventory_hostname }}: saving uncommitted changes in /etc after deploying role: {{ ansible_play_role_names|join(',') }} {{ common_etckeeper_revision_url }} {% if common_etckeeper_issue is defined and common_etckeeper_issue_url is defined %}{{common_etckeeper_issue_url}}{{ common_etckeeper_issue }}{% endif %}" }, when: __common_etckeeper_role_exists|length >0, tags: [always]}
vars:
__common_etckeeper_role_exists: "{{ lookup('ansible.builtin.first_found', ['../ansible/roles/org-eu-glas.common-etckeeper/meta/main.yml', '/etc/ansible/roles/org-eu-glas.common-etckeeper/meta/main.yml'], skip=true) }}"
roles:
# Most of the roles below are not distributed with the playbook, but downloaded separately using `ansible-galaxy` via the `just roles` command (see `justfile`).
- role: playbook_help
@@ -56,6 +61,13 @@
- exim_relay

- role: postgres
apply:
tags:
- setup-all
- setup-postgres
- install-all
- install-postgres
- "{% if server_path_postgres_dump is defined %}import-postgres{% endif %}"

- redis
- keydb


Ładowanie…
Anuluj
Zapisz