Ansible for Matrix Deployment
Ansible for Matrix Deployment
Section titled “Ansible for Matrix Deployment”Installing Ansible for Matrix Deployment
Section titled “Installing Ansible for Matrix Deployment”Return to Guides.
If you are installing on an LXC, see the Linux Container LXC Setup guide first. Set DNS using the DNS Guide.
Install Ansible
Section titled “Install Ansible”Refer to the official Ansible Installation Guide.
wget -qO - 'https://proget.makedeb.org/debian-feeds/prebuilt-mpr.pub' | gpg --dearmor | sudo tee /usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg 1> /dev/nullecho "deb [signed-by=/usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg](arch=amd64) https://proget.makedeb.org prebuilt-mpr $(lsb_release -cs)" | sudo tee /etc/apt/sources.list.d/prebuilt-mpr.listsudo apt update
sudo apt install just
sudo apt install -y python3-pip # Install pippython3 -m pip install --user ansible # Use pip to install Ansiblepip install passlibRunning Ansible
Section titled “Running Ansible”After DNS is fully configured and ready:
make rolesansible-playbook -i inventory/hosts setup.yml --tags=setup-all,startVars Creation
Section titled “Vars Creation”echo "domain.tld: matrix."read domainecho "remote IP address: "read remote_ipgit clone https://github.com/spantaleev/matrix-docker-ansible-deploy.gitcd ./matrix-docker-ansible-deploymkdir inventory/host_vars/matrix.$domaincp examples/vars.yml inventory/host_vars/matrix.$domain/vars.ymlcp examples/hosts inventory/hostssed 's/YOUR_BARE_DOMAIN_NAME_HERE/$domain/g' inventory/host_vars/matrix.$domain/vars.ymlVARS Configuration
Section titled “VARS Configuration”sed 's/synapse/dendrite/' inventory/host_vars/matrix.$domain/vars.yml