initial commit
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
commit
75891c3271
129 changed files with 8046 additions and 0 deletions
21
roles/mail/tasks/rainloop.yml
Normal file
21
roles/mail/tasks/rainloop.yml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
- name: Ensure Rainloop allowed domains are set
|
||||
ini_file:
|
||||
path: /srv/mail/rainloop/data/_data_/_default_/configs/application.ini
|
||||
section: security
|
||||
option: AllowedDomains
|
||||
value: "{{ mail_domains | join(',') }}"
|
||||
backup: yes
|
||||
notify:
|
||||
- Restart Rainloop
|
||||
|
||||
- name: Set proper mode of Rainloop data directory
|
||||
file:
|
||||
path: /srv/mail/rainloop
|
||||
state: directory
|
||||
recurse: yes
|
||||
mode: u+rwX,g+rX
|
||||
|
||||
# chown -R always exits 0; changed_when: false suppresses spurious "changed" in playbook output
|
||||
- name: Set proper ownership of Rainloop data directory
|
||||
command: chown -R 991:991 /srv/mail/rainloop
|
||||
changed_when: false
|
||||
Loading…
Add table
Add a link
Reference in a new issue