瀏覽代碼

Couple issues with OpenDMARC on Debian 7:

 * fix mail_db_opendmarc_username/mail_db_opendmarc_password variable
   not found.
 * python-mysqldb package is required. Add it to opendmarc task.
Pavel Karoukin 8 年之前
父節點
當前提交
a86e43d5b4
共有 2 個檔案被更改,包括 8 行新增2 行删除
  1. 5
    2
      roles/mailserver/tasks/dmarc.yml
  2. 3
    0
      vars/user.yml

+ 5
- 2
roles/mailserver/tasks/dmarc.yml 查看文件

@@ -1,5 +1,8 @@
1
-- name: Install OpenDMARC milter
2
-  apt: pkg=opendmarc state=installed update_cache=yes
1
+- name: Install OpenDMARC milter and related packages
2
+  apt: pkg={{ item }} state=installed update_cache=yes
3
+  with_items:
4
+      - python-mysqldb
5
+      - opendmarc
3 6
 
4 7
 - name: Copy OpenDMARC configuration file into place
5 8
   template: src=etc_opendmarc.conf.j2 dest=/etc/opendmarc.conf owner=root group=root

+ 3
- 0
vars/user.yml 查看文件

@@ -87,3 +87,6 @@ selfoss_password_hash: "TODO"
87 87
 # wallabag
88 88
 wallabag_salt: TODO
89 89
 wallabag_db_password: TODO
90
+
91
+mail_db_opendmarc_username: opendmarc
92
+mail_db_opendmarc_password: TODO

Loading…
取消
儲存