1
0
Fork 0
This commit is contained in:
Daniele Tricoli 2022-05-24 20:24:31 +02:00
parent e462d571b6
commit 419fbd04a4
1 changed files with 3 additions and 3 deletions

View File

@ -1,13 +1,13 @@
---
- name: install sqlite3
apt:
ansible.builtin.apt:
name: sqlite3
update_cache: true
cache_valid_time: 3600
- name: import schema
shell: |
ansible.builtin.shell: |
sqlite3 /etc/dovecot/authdb.sqlite << EOF
CREATE TABLE IF NOT EXISTS alias (
address VARCHAR(255) NOT NULL PRIMARY KEY,
@ -42,7 +42,7 @@
EOF
- name: ensure /etc/dovecot/authdb.sqlite is owned by dovecot and postfix
file:
ansible.builtin.file:
path: "{{ mailserver_auth_database }}"
owner: dovecot
group: postfix