configure serveur name

This commit is contained in:
histausse 2021-07-27 23:35:04 +02:00
parent b2bc03ca49
commit 2f296430b3
Signed by: histausse
GPG key ID: 67486F107F62E9E9
2 changed files with 13 additions and 1 deletions

View file

@ -0,0 +1,2 @@
---
matrix_server_name: pp.intra

View file

@ -13,10 +13,13 @@
local: C
template: template0
- name: Install apt transport https
- name: Install apt utils
apt:
name:
- apt-transport-https
- gnupg2
- debconf
- debconf-utils
state: latest
update_cache: true
register: apt_result
@ -34,6 +37,13 @@
repo: "deb [signed-by=/usr/share/keyrings/matrix-org-archive-keyring.gpg] https://packages.matrix.org/debian/ {{ ansible_facts['lsb']['codename'] }} main"
state: present
- name: Configure debian question for hostname
debconf:
name: matrix-synapse-py3
question: matrix-synapse/server-name
value: "{{ matrix_server_name }}"
vtype: string
- name: Install synapse
apt:
name: