82c966e6da
Thin runs the new matrix-eavesdrop bot on the eavesdrop server. It will write logs out to the limnoria logs directory, which is mounted inside the container. Change-Id: I867eec692f63099b295a37a028ee096c24109a2e
45 lines
966 B
YAML
45 lines
966 B
YAML
- name: Ensure bot directories
|
|
file:
|
|
state: directory
|
|
path: '/var/lib/matrix-eavesdrop/{{ item }}'
|
|
mode: 0755
|
|
loop:
|
|
- data
|
|
- config
|
|
|
|
- name: Install eavesdrop config
|
|
template:
|
|
src: config.yaml
|
|
dest: /var/lib/matrix-eavesdrop/config/config.yaml
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
|
|
- name: Ensure /etc/matrix-eavesdrop-docker directory
|
|
file:
|
|
state: directory
|
|
path: /etc/matrix-eavesdrop-docker
|
|
mode: 0755
|
|
|
|
- name: Put docker-compose file in place
|
|
copy:
|
|
src: docker-compose.yaml
|
|
dest: /etc/matrix-eavesdrop-docker/docker-compose.yaml
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
|
|
- name: Run docker-compose pull
|
|
shell:
|
|
cmd: docker-compose pull
|
|
chdir: /etc/matrix-eavesdrop-docker/
|
|
|
|
- name: Run docker-compose up
|
|
shell:
|
|
cmd: "docker-compose up -d"
|
|
chdir: /etc/matrix-eavesdrop-docker/
|
|
|
|
- name: Run docker prune to cleanup unneeded images
|
|
shell:
|
|
cmd: docker image prune -f
|