mirror of
https://github.com/famedly/ansible-collection-matrix
synced 2024-11-10 13:44:16 +00:00
Consolidate directory creation to a single loop
This commit is contained in:
parent
72cd8744c2
commit
3240f5df73
1 changed files with 5 additions and 15 deletions
|
@ -1,24 +1,14 @@
|
|||
---
|
||||
- name: Create directory for media storage
|
||||
file:
|
||||
name: /opt/synapse/media_store
|
||||
state: directory
|
||||
owner: synapse
|
||||
group: synapse
|
||||
|
||||
- name: Create directory for uploads
|
||||
file:
|
||||
name: /opt/synapse/uploads
|
||||
state: directory
|
||||
owner: synapse
|
||||
group: synapse
|
||||
|
||||
- name: Create directory for SSL files
|
||||
file:
|
||||
name: /opt/synapse/ssl
|
||||
name: "/opt/synapse/{{ item }}"
|
||||
state: directory
|
||||
owner: synapse
|
||||
group: synapse
|
||||
loop:
|
||||
- media_store
|
||||
- uploads
|
||||
- ssl
|
||||
|
||||
- name: Create signing key
|
||||
shell: /opt/synapse/env/bin/python -c "from signedjson import key; file = open('/opt/synapse/ssl/{{ matrix_synapse_domain}}.signing.key','w'); key.write_signing_keys(file, [key.generate_signing_key('first')]); file.close()"
|
||||
|
|
Loading…
Reference in a new issue