Make all templates local, ensure ssh keys for amd64 builds are generated on first boot
This commit is contained in:
parent
0fa18af48e
commit
c22e6ed557
14 changed files with 459 additions and 59 deletions
|
|
@ -54,25 +54,13 @@
|
|||
creates: "/home/{{ butter_user }}/dendrite/server.key"
|
||||
|
||||
- name: Download Dendrite config to target
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ config_base_url }}/butterbox-dendrite.conf"
|
||||
ansible.builtin.template:
|
||||
src: "templates/butterbox-dendrite.conf.j2"
|
||||
dest: "/home/{{ butter_user }}/dendrite/butterbox-dendrite.conf"
|
||||
owner: "{{ butter_user }}"
|
||||
group: "{{ butter_user }}"
|
||||
mode: '0644'
|
||||
|
||||
- name: Replace REPLACEME with butter_name in config
|
||||
ansible.builtin.replace:
|
||||
path: "/home/{{ butter_user }}/dendrite/butterbox-dendrite.conf"
|
||||
regexp: 'REPLACEME'
|
||||
replace: "{{ butter_name }}"
|
||||
|
||||
- name: Replace /home/pi with /home/butter_user in config
|
||||
ansible.builtin.replace:
|
||||
path: "/home/{{ butter_user }}/dendrite/butterbox-dendrite.conf"
|
||||
regexp: '/pi/'
|
||||
replace: "/{{ butter_user }}/"
|
||||
|
||||
- name: Create log directory for Dendrite
|
||||
ansible.builtin.file:
|
||||
path: "/var/log/dendrite"
|
||||
|
|
@ -112,27 +100,6 @@
|
|||
name: dendrite
|
||||
when: not (is_vmdb2 | bool)
|
||||
|
||||
- name: Download Matrix reverse proxy config for Lighttpd
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ config_base_url }}/50-matrix-reverse-proxy.conf"
|
||||
dest: /etc/lighttpd/conf-available/50-matrix-reverse-proxy.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
|
||||
- name: Ensure old symlink is removed if it exists
|
||||
ansible.builtin.file:
|
||||
path: /etc/lighttpd/conf-enabled/50-matrix-reverse-proxy.conf
|
||||
state: absent
|
||||
force: true
|
||||
|
||||
- name: Enable reverse proxy config for Matrix in Lighttpd
|
||||
ansible.builtin.file:
|
||||
src: /etc/lighttpd/conf-available/50-matrix-reverse-proxy.conf
|
||||
dest: /etc/lighttpd/conf-enabled/50-matrix-reverse-proxy.conf
|
||||
state: link
|
||||
force: true
|
||||
|
||||
- name: Start dendrite as user butter_user
|
||||
become: true
|
||||
become_user: "{{ butter_user }}"
|
||||
|
|
@ -146,7 +113,6 @@
|
|||
when: is_vmdb2 | bool
|
||||
changed_when: false
|
||||
|
||||
|
||||
- name: Wait for Dendrite client API to be available
|
||||
ansible.builtin.wait_for:
|
||||
host: "127.0.0.1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue