ansible-collection-famedly-.../tests/test-docker.yml

47 lines
1.5 KiB
YAML
Raw Normal View History

2019-02-12 02:16:03 +00:00
---
2019-02-15 02:24:30 +00:00
- hosts: all
become: true
2019-04-08 19:34:31 +00:00
tasks:
- name: Check if the api returns the correct version
uri:
url: "http://localhost:8008/_matrix/federation/v1/version"
return_content: true
register: api_version
- name: Check returned api version
fail: >
Return value is not as expected {{ api_version }}
when: matrix_synapse_version != "v"~(api_version.content | from_json).server.version
2019-02-15 02:24:30 +00:00
vars:
dbname: synapse
dbuser: synapse_user
dbpw: synapse_password
matrix_synapse_deployment_method: docker
matrix_synapse_supervision_method: docker
2019-02-15 02:24:30 +00:00
roles:
- role: geerlingguy.pip
pip_install_packages:
- name: docker
- role: geerlingguy.docker
2019-02-15 02:24:30 +00:00
- role: geerlingguy.postgresql
postgresql_databases:
- name: "{{ dbname }}"
2019-02-15 02:24:30 +00:00
postgresql_users:
- name: "{{ dbuser }}"
2019-02-15 02:24:30 +00:00
password: "{{ dbpw }}"
postgresql_global_config_options:
- option: listen_addresses
value: "172.17.0.1"
postgresql_hba_entries:
- { type: local, database: all, user: all, auth_method: trust }
- { type: host, database: "{{ dbname }}", user: "{{ dbuser }}", address: "172.17.0.1/16", auth_method: md5 }
2019-02-15 02:24:30 +00:00
- role: matrix-ansible-synapse
matrix_server_name: localhost
matrix_synapse_report_stats: false
matrix_synapse_pg_host: 172.17.0.1
2019-02-15 02:24:30 +00:00
matrix_synapse_pg_user: "{{ dbuser }}"
matrix_synapse_pg_pass: "{{ dbpw }}"
matrix_synapse_pg_db: "{{ dbname }}"
matrix_synapse_extra_config:
no_tls: true