Added cryptpad role
This commit is contained in:
24
roles/cryptpad/tasks/config.yml
Normal file
24
roles/cryptpad/tasks/config.yml
Normal file
@ -0,0 +1,24 @@
|
||||
---
|
||||
- name: copy config
|
||||
copy:
|
||||
remote_src: yes
|
||||
src: ~/cryptpad/config/config.example.js
|
||||
dest: ~/cryptpad/config/config.js
|
||||
- name: update config
|
||||
block:
|
||||
- name: set domain as safe origin
|
||||
lineinfile:
|
||||
path: ~/cryptpad/config/config.js
|
||||
regex: '/?/?httpSafeOrigin'
|
||||
line: "httpSafeOrigin: 'https://{{ domain }}',"
|
||||
- name: set http address
|
||||
lineinfile:
|
||||
path: ~/cryptpad/config/config.js
|
||||
regex: '/?/?httpAddress'
|
||||
line: "httpAddress: '::',"
|
||||
- name: change email address
|
||||
lineinfile:
|
||||
path: ~/cryptpad/config/config.js
|
||||
regex: 'adminEmail'
|
||||
line: 'adminEmail: {{ cryptpad_email }},'
|
||||
|
||||
Reference in New Issue
Block a user