Compare commits
5 Commits
stable
...
evoadmin-m
Author | SHA1 | Date |
---|---|---|
Victor LABORIE | 8d3834c783 | |
Victor LABORIE | f219290e34 | |
Victor LABORIE | 8df530b41a | |
Victor LABORIE | 3e60f79c5f | |
Victor LABORIE | 704c722524 |
|
@ -12,3 +12,4 @@
|
|||
- php-pear
|
||||
- php-log
|
||||
- php-crypt-chap
|
||||
- php-twig
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
git:
|
||||
repo: https://forge.evolix.org/evoadmin-mail.git
|
||||
dest: "{{ evoadminmail_document_root}}"
|
||||
version: master
|
||||
version: dev
|
||||
update: yes
|
||||
when: ansible_distribution_major_version | version_compare('9', '>=')
|
||||
|
||||
|
@ -49,20 +49,20 @@
|
|||
group: "{{ evoadminmail_username }}"
|
||||
recurse: yes
|
||||
|
||||
- name: "Copy connect.php"
|
||||
- name: Copy config.ini in /etc/evolinux
|
||||
template:
|
||||
src: connect.php.j2
|
||||
dest: "{{ evoadminmail_document_root }}/htdocs/config/connect.php"
|
||||
owner: "www-{{ evoadminmail_username }}"
|
||||
src: config.ini.j2
|
||||
dest: /etc/evolinux/evoadmin-mail.ini
|
||||
owner: "{{ evoadminmail_username }}"
|
||||
group: "{{ evoadminmail_username }}"
|
||||
mode: "0640"
|
||||
when: ldap_admin_password is defined
|
||||
|
||||
- name: "Copy conf.php"
|
||||
template:
|
||||
src: conf.php.j2
|
||||
dest: "{{ evoadminmail_document_root }}/htdocs/config/conf.php"
|
||||
owner: "www-{{ evoadminmail_username }}"
|
||||
group: "{{ evoadminmail_username }}"
|
||||
- name: Link for evoadmin config.ini
|
||||
file:
|
||||
src: /etc/evolinux/evoadmin-mail.ini
|
||||
dest: "{{ evoadminmail_document_root }}/config/config.ini"
|
||||
state: link
|
||||
|
||||
- name: create a password for evoadmin user
|
||||
command: "apg -n 1 -m 16 -M lcN"
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
; The configuration for evoadmin-mail
|
||||
;
|
||||
; You need to copy and edit config-sample.ini to config.ini.
|
||||
; This INI file is loaded by evoadmin-mail and contains the
|
||||
; following configurations :
|
||||
;
|
||||
; * Global settings
|
||||
; * LDAP settings
|
||||
;
|
||||
|
||||
[global]
|
||||
name = "Evoadmin Mail";
|
||||
mail = "{{ evoadminmail_contact_email or general_alert_email | mandatory }}"
|
||||
|
||||
[ldap]
|
||||
host = "127.0.0.1"
|
||||
port = 389
|
||||
base = "{{ ldap_suffix }}"
|
||||
admin_dn = "cn=admin,{{ ldap_suffix }}"
|
||||
admin_pass = "{{ ldap_admin_password.stdout }}"
|
||||
superadmin[] = "evoadmin"
|
||||
|
||||
[log]
|
||||
file = "../../log/evoadmin-mail.log"
|
||||
level = info
|
Loading…
Reference in New Issue