Closed Seldos closed 2 years ago
What does your inventory/hosts
look like? The domain there needs to match the the folder name.
[matrix_servers] matrix.elementtesting ansible_connection=local ansible_ssh_user=pi become=true become_user=root matrix_coturn_turn_external_ip_address=x.x.x.x
i also tried matrix.elementtesting.com
This likely means you have a typo in the hostname in inventory/hosts
or in the directory path inventory/host_vars/matrix.DOMAIN/vars.yml
. See if all directory and file names match.
I copied the name of the folder into the hosts file so there should be no typo
My directory name is: /inventory/host_vars/matrix.elementtesting/vars.yml /inventory/hosts/hosts
i also tried changing up the name to something else but it doesn't help. I also changed the folder name to:
/inventory/host_vars/matrix.elementtesting.com/vars.yml /inventory/host_vars/elementtesting/vars.yml /inventory/host_vars/elementtesting.com/vars.yml
but i still get the same error.
Playbook Configuration:
My
vars.yml
file looks like this:Matrix Server:
Ansible: If your problem appears to be with Ansible, tell us: Running on the Matrix Server itself Raspberry Pi OS - latest version Version: 3.9.2 standard installation
Problem description:
TASK [matrix-base : Fail if matrix_homeserver_generic_secret_key is undefined] *** fatal: [matrix.elementtesting.com]: FAILED! => changed=false msg: |- The
matrix_homeserver_generic_secret_key` variable must be defined and have a non-null and non-empty value.` Im getting this Error all the time, i read in another issue here on github that some other fixed it by naming his matrix.your-domain folder correctly but i dont know how it is named correctly
i named it "matrix.elementtesting.com", "matrix.elementtesting", "elementtesting", "elementtesting.com"
i tried chaning up the variable "matrix_domain" in the Vars.yml to "elementtesting.com", "elementtesting", "matrix.elementtesting.com", "matrix.elementtesting"
and it does not seem to fix the issue
Additional context i currently don't own the domain, but it does not seem to be the problem here in my opinion