matrix_host_command_docker -> devture_systemd_docker_base_host_command_docker (via com.devture.ansible.role.systemd_docker_base)
This commit is contained in:
roles/custom
matrix-backup-borg
templates
matrix-base
defaults
matrix-bot-buscarron
templates
matrix-bot-go-neb
templates
systemd
matrix-bot-honoroit
templates
matrix-bot-matrix-registration-bot
templates
matrix-bot-matrix-reminder-bot
templates
matrix-bot-maubot
templates
systemd
matrix-bot-mjolnir
templates
matrix-bot-postmoogle
templates
matrix-bridge-appservice-discord
matrix-bridge-appservice-irc
matrix-bridge-appservice-kakaotalk
matrix-bridge-appservice-slack
matrix-bridge-appservice-webhooks
templates
matrix-bridge-beeper-linkedin
matrix-bridge-go-skype-bridge
templates
matrix-bridge-heisenbridge
templates
matrix-bridge-hookshot
matrix-bridge-mautrix-discord
templates
matrix-bridge-mautrix-facebook
templates
matrix-bridge-mautrix-googlechat
templates
matrix-bridge-mautrix-hangouts
templates
matrix-bridge-mautrix-instagram
templates
matrix-bridge-mautrix-signal
matrix-bridge-mautrix-telegram
templates
matrix-bridge-mautrix-twitter
templates
matrix-bridge-mautrix-whatsapp
templates
matrix-bridge-mx-puppet-discord
templates
matrix-bridge-mx-puppet-groupme
templates
matrix-bridge-mx-puppet-instagram
templates
matrix-bridge-mx-puppet-slack
templates
matrix-bridge-mx-puppet-steam
templates
matrix-bridge-mx-puppet-twitter
templates
matrix-cactus-comments
templates
matrix-client-cinny
templates
matrix-client-element
templates
matrix-client-hydrogen
templates
matrix-common-after
tasks
matrix-conduit
templates
conduit
systemd
matrix-corporal
templates
systemd
matrix-coturn
templates
systemd
matrix-dendrite
templates
dendrite
systemd
matrix-dimension
templates
systemd
matrix-dynamic-dns
templates
matrix-email2matrix
templates
matrix-etherpad
templates
systemd
matrix-grafana
templates
systemd
matrix-jitsi
tasks
templates
matrix-ldap-registration-proxy
templates
matrix-ma1sd
templates
systemd
matrix-mailer
templates
systemd
matrix-nginx-proxy
tasks
templates
matrix-ntfy
templates
systemd
matrix-postgres-backup
templates
matrix-postgres
tasks
import_generic_sqlite_db.ymlimport_postgres.ymlmigrate_db_to_postgres.ymlrun_vacuum.ymlupgrade_postgres.yml
util
templates
systemd
matrix-prometheus-node-exporter
templates
matrix-prometheus-postgres-exporter
templates
matrix-prometheus
templates
systemd
matrix-registration
templates
matrix-sygnal
templates
systemd
matrix-synapse-admin
templates
matrix-synapse
tasks
templates
goofys
systemd
synapse
ext
s3-storage-provider
systemd
matrix-user-creator
matrix_playbook_migration
tasks
@ -71,7 +71,7 @@
|
||||
- name: Import SQLite database from {{ sqlite_database_path }} into Postgres # noqa name[template]
|
||||
ansible.builtin.command:
|
||||
cmd: >-
|
||||
{{ matrix_host_command_docker }} run
|
||||
{{ devture_systemd_docker_base_host_command_docker }} run
|
||||
--rm
|
||||
--user={{ matrix_user_uid }}:{{ matrix_user_gid }}
|
||||
--cap-drop=ALL
|
||||
|
@ -72,7 +72,7 @@
|
||||
- name: Generate Postgres database import command
|
||||
ansible.builtin.set_fact:
|
||||
matrix_postgres_import_command: >-
|
||||
{{ matrix_host_command_docker }} run --rm --name matrix-postgres-import
|
||||
{{ devture_systemd_docker_base_host_command_docker }} run --rm --name matrix-postgres-import
|
||||
--log-driver=none
|
||||
--user={{ matrix_user_uid }}:{{ matrix_user_gid }}
|
||||
--cap-drop=ALL
|
||||
|
@ -121,7 +121,7 @@
|
||||
- name: Import {{ matrix_postgres_db_migration_request.engine_old }} database from {{ matrix_postgres_db_migration_request.src }} into Postgres # noqa name[template]
|
||||
ansible.builtin.command:
|
||||
cmd: >-
|
||||
{{ matrix_host_command_docker }} run
|
||||
{{ devture_systemd_docker_base_host_command_docker }} run
|
||||
--rm
|
||||
--user={{ matrix_user_uid }}:{{ matrix_user_gid }}
|
||||
--cap-drop=ALL
|
||||
@ -146,7 +146,7 @@
|
||||
- name: Execute additional Postgres SQL migration statements
|
||||
ansible.builtin.command:
|
||||
cmd: >-
|
||||
{{ matrix_host_command_docker }} run
|
||||
{{ devture_systemd_docker_base_host_command_docker }} run
|
||||
--rm
|
||||
--user={{ matrix_user_uid }}:{{ matrix_user_gid }}
|
||||
--cap-drop=ALL
|
||||
|
@ -47,7 +47,7 @@
|
||||
- name: Generate Postgres database vacuum command
|
||||
ansible.builtin.set_fact:
|
||||
matrix_postgres_vacuum_command: >-
|
||||
{{ matrix_host_command_docker }} run --rm --name matrix-postgres-synapse-vacuum
|
||||
{{ devture_systemd_docker_base_host_command_docker }} run --rm --name matrix-postgres-synapse-vacuum
|
||||
--user={{ matrix_user_uid }}:{{ matrix_user_gid }}
|
||||
--cap-drop=ALL
|
||||
--network={{ matrix_docker_network }}
|
||||
|
@ -82,7 +82,7 @@
|
||||
- name: Perform Postgres database dump
|
||||
ansible.builtin.command:
|
||||
cmd: >-
|
||||
{{ matrix_host_command_docker }} run --rm --name matrix-postgres-dump
|
||||
{{ devture_systemd_docker_base_host_command_docker }} run --rm --name matrix-postgres-dump
|
||||
--log-driver=none
|
||||
--user={{ matrix_user_uid }}:{{ matrix_user_gid }}
|
||||
--network={{ matrix_docker_network }}
|
||||
@ -134,7 +134,7 @@
|
||||
- name: Generate Postgres database import command
|
||||
ansible.builtin.set_fact:
|
||||
matrix_postgres_import_command: >-
|
||||
{{ matrix_host_command_docker }} run --rm --name matrix-postgres-import
|
||||
{{ devture_systemd_docker_base_host_command_docker }} run --rm --name matrix-postgres-import
|
||||
--log-driver=none
|
||||
--user={{ matrix_user_uid }}:{{ matrix_user_gid }}
|
||||
--cap-drop=ALL
|
||||
|
@ -22,7 +22,7 @@
|
||||
- name: Execute Postgres additional database initialization SQL file for {{ additional_db.name }}
|
||||
ansible.builtin.command:
|
||||
cmd: >-
|
||||
{{ matrix_host_command_docker }} run
|
||||
{{ devture_systemd_docker_base_host_command_docker }} run
|
||||
--rm
|
||||
--user={{ matrix_user_uid }}:{{ matrix_user_gid }}
|
||||
--cap-drop=ALL
|
||||
|
@ -8,14 +8,14 @@ DefaultDependencies=no
|
||||
[Service]
|
||||
Type=simple
|
||||
Environment="HOME={{ devture_systemd_docker_base_systemd_unit_home_path }}"
|
||||
ExecStartPre=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-postgres 2>/dev/null || true'
|
||||
ExecStartPre=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-postgres 2>/dev/null || true'
|
||||
ExecStartPre=-{{ matrix_host_command_sh }} -c '{{ devture_systemd_docker_base_host_command_docker }} kill matrix-postgres 2>/dev/null || true'
|
||||
ExecStartPre=-{{ matrix_host_command_sh }} -c '{{ devture_systemd_docker_base_host_command_docker }} rm matrix-postgres 2>/dev/null || true'
|
||||
|
||||
# We need /dev/shm to be larger than the default to allow VACUUM to work.
|
||||
# See:
|
||||
# - https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1362
|
||||
# - https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1268
|
||||
ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-postgres \
|
||||
ExecStart={{ devture_systemd_docker_base_host_command_docker }} run --rm --name matrix-postgres \
|
||||
--log-driver=none \
|
||||
--user={{ matrix_user_uid }}:{{ matrix_user_gid }} \
|
||||
--cap-drop=ALL \
|
||||
@ -36,8 +36,8 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-postgres \
|
||||
{{ matrix_postgres_docker_image_to_use }} \
|
||||
postgres {{ matrix_postgres_process_extra_arguments|join(' ') }}
|
||||
|
||||
ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-postgres 2>/dev/null || true'
|
||||
ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-postgres 2>/dev/null || true'
|
||||
ExecStop=-{{ matrix_host_command_sh }} -c '{{ devture_systemd_docker_base_host_command_docker }} kill matrix-postgres 2>/dev/null || true'
|
||||
ExecStop=-{{ matrix_host_command_sh }} -c '{{ devture_systemd_docker_base_host_command_docker }} rm matrix-postgres 2>/dev/null || true'
|
||||
Restart=always
|
||||
RestartSec=30
|
||||
SyslogIdentifier=matrix-postgres
|
||||
|
Reference in New Issue
Block a user