Merge pull request #66 from jcgruenhage/use-yaml-syntax-consistently
Use yaml syntax instead of key=value syntax consistentlydevelopment
commit
65d4fe7e0c
@ -1,24 +1,31 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Fail if playbook called incorrectly
|
- name: Fail if playbook called incorrectly
|
||||||
fail: msg="The `username` variable needs to be provided to this playbook, via --extra-vars"
|
fail:
|
||||||
|
msg: "The `username` variable needs to be provided to this playbook, via --extra-vars"
|
||||||
when: "username is not defined or username == '<your-username>'"
|
when: "username is not defined or username == '<your-username>'"
|
||||||
|
|
||||||
- name: Fail if playbook called incorrectly
|
- name: Fail if playbook called incorrectly
|
||||||
fail: msg="The `password` variable needs to be provided to this playbook, via --extra-vars"
|
fail:
|
||||||
|
msg: "The `password` variable needs to be provided to this playbook, via --extra-vars"
|
||||||
when: "password is not defined or password == '<your-password>'"
|
when: "password is not defined or password == '<your-password>'"
|
||||||
|
|
||||||
- name: Fail if playbook called incorrectly
|
- name: Fail if playbook called incorrectly
|
||||||
fail: msg="The `admin` variable needs to be provided to this playbook, via --extra-vars"
|
fail:
|
||||||
|
msg: "The `admin` variable needs to be provided to this playbook, via --extra-vars"
|
||||||
when: "admin is not defined or admin not in ['yes', 'no']"
|
when: "admin is not defined or admin not in ['yes', 'no']"
|
||||||
|
|
||||||
- name: Ensure matrix-synapse is started
|
- name: Ensure matrix-synapse is started
|
||||||
service: name=matrix-synapse state=started daemon_reload=yes
|
service:
|
||||||
|
name: matrix-synapse
|
||||||
|
state: started
|
||||||
|
daemon_reload: yes
|
||||||
register: start_result
|
register: start_result
|
||||||
|
|
||||||
- name: Wait a while, so that Matrix Synapse can manage to start
|
- name: Wait a while, so that Matrix Synapse can manage to start
|
||||||
pause: seconds=7
|
pause:
|
||||||
|
seconds: 7
|
||||||
when: start_result.changed
|
when: start_result.changed
|
||||||
|
|
||||||
- name: Register user
|
- name: Register user
|
||||||
shell: "/usr/local/bin/matrix-synapse-register-user {{ username }} {{ password }} {{ '1' if admin == 'yes' else '0' }}"
|
shell: "/usr/local/bin/matrix-synapse-register-user {{ username }} {{ password }} {{ '1' if admin == 'yes' else '0' }}"
|
||||||
|
@ -1,43 +1,87 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Ensure matrix-postgres autoruns and is restarted
|
- name: Ensure matrix-postgres autoruns and is restarted
|
||||||
service: name=matrix-postgres enabled=yes state=restarted daemon_reload=yes
|
service:
|
||||||
|
name: matrix-postgres
|
||||||
|
enabled: yes
|
||||||
|
state: restarted
|
||||||
|
daemon_reload: yes
|
||||||
when: "not matrix_postgres_use_external"
|
when: "not matrix_postgres_use_external"
|
||||||
|
|
||||||
- name: Ensure matrix-goofys autoruns and is restarted
|
- name: Ensure matrix-goofys autoruns and is restarted
|
||||||
service: name=matrix-goofys enabled=yes state=restarted daemon_reload=yes
|
service:
|
||||||
|
name: matrix-goofys
|
||||||
|
enabled: yes
|
||||||
|
state: restarted
|
||||||
|
daemon_reload: yes
|
||||||
when: matrix_s3_media_store_enabled
|
when: matrix_s3_media_store_enabled
|
||||||
|
|
||||||
- name: Ensure matrix-coturn autoruns and is restarted
|
- name: Ensure matrix-coturn autoruns and is restarted
|
||||||
service: name=matrix-coturn enabled=yes state=restarted daemon_reload=yes
|
service:
|
||||||
|
name: matrix-coturn
|
||||||
|
enabled: yes
|
||||||
|
state: restarted
|
||||||
|
daemon_reload: yes
|
||||||
|
|
||||||
- name: Ensure matrix-mailer autoruns and is restarted
|
- name: Ensure matrix-mailer autoruns and is restarted
|
||||||
service: name=matrix-mailer enabled=yes state=restarted daemon_reload=yes
|
service:
|
||||||
|
name: matrix-mailer
|
||||||
|
enabled: yes
|
||||||
|
state: restarted
|
||||||
|
daemon_reload: yes
|
||||||
when: matrix_mailer_enabled
|
when: matrix_mailer_enabled
|
||||||
|
|
||||||
- name: Ensure matrix-mxisd autoruns and is restarted
|
- name: Ensure matrix-mxisd autoruns and is restarted
|
||||||
service: name=matrix-mxisd enabled=yes state=restarted daemon_reload=yes
|
service:
|
||||||
|
name: matrix-mxisd
|
||||||
|
enabled: yes
|
||||||
|
state: restarted
|
||||||
|
daemon_reload: yes
|
||||||
when: matrix_mxisd_enabled
|
when: matrix_mxisd_enabled
|
||||||
|
|
||||||
- name: Ensure matrix-synapse autoruns and is restarted
|
- name: Ensure matrix-synapse autoruns and is restarted
|
||||||
service: name=matrix-synapse enabled=yes state=restarted daemon_reload=yes
|
service:
|
||||||
|
name: matrix-synapse
|
||||||
|
enabled: yes
|
||||||
|
state: restarted
|
||||||
|
daemon_reload: yes
|
||||||
|
|
||||||
- name: Ensure matrix-riot-web autoruns and is restarted
|
- name: Ensure matrix-riot-web autoruns and is restarted
|
||||||
service: name=matrix-riot-web enabled=yes state=restarted daemon_reload=yes
|
service:
|
||||||
|
name: matrix-riot-web
|
||||||
|
enabled: yes
|
||||||
|
state: restarted
|
||||||
|
daemon_reload: yes
|
||||||
when: matrix_riot_web_enabled
|
when: matrix_riot_web_enabled
|
||||||
|
|
||||||
- name: Ensure matrix-nginx-proxy autoruns and is restarted
|
- name: Ensure matrix-nginx-proxy autoruns and is restarted
|
||||||
service: name=matrix-nginx-proxy enabled=yes state=restarted daemon_reload=yes
|
service:
|
||||||
|
name: matrix-nginx-proxy
|
||||||
|
enabled: yes
|
||||||
|
state: restarted
|
||||||
|
daemon_reload: yes
|
||||||
when: matrix_nginx_proxy_enabled
|
when: matrix_nginx_proxy_enabled
|
||||||
|
|
||||||
- name: Ensure matrix-corporal autoruns and is restarted
|
- name: Ensure matrix-corporal autoruns and is restarted
|
||||||
service: name=matrix-corporal enabled=yes state=restarted daemon_reload=yes
|
service:
|
||||||
|
name: matrix-corporal
|
||||||
|
enabled: yes
|
||||||
|
state: restarted
|
||||||
|
daemon_reload: yes
|
||||||
when: matrix_corporal_enabled
|
when: matrix_corporal_enabled
|
||||||
|
|
||||||
- name: Ensure matrix-mautrix-telegram autoruns and is restarted
|
- name: Ensure matrix-mautrix-telegram autoruns and is restarted
|
||||||
service: name=matrix-mautrix-telegram enabled=yes state=restarted daemon_reload=yes
|
service:
|
||||||
|
name: matrix-mautrix-telegram
|
||||||
|
enabled: yes
|
||||||
|
state: restarted
|
||||||
|
daemon_reload: yes
|
||||||
when: matrix_mautrix_telegram_enabled
|
when: matrix_mautrix_telegram_enabled
|
||||||
|
|
||||||
- name: Ensure matrix-mautrix-whatsapp autoruns and is restarted
|
- name: Ensure matrix-mautrix-whatsapp autoruns and is restarted
|
||||||
service: name=matrix-mautrix-whatsapp enabled=yes state=restarted daemon_reload=yes
|
service:
|
||||||
|
name: matrix-mautrix-whatsapp
|
||||||
|
enabled: yes
|
||||||
|
state: restarted
|
||||||
|
daemon_reload: yes
|
||||||
when: matrix_mautrix_whatsapp_enabled
|
when: matrix_mautrix_whatsapp_enabled
|
||||||
|
Loading…
Reference in new issue