pull/97/head
parent
a21fcaf663
commit
135a089341
@ -0,0 +1,8 @@
|
||||
---
|
||||
|
||||
- name: Configure opensmtpd (in the container)
|
||||
template:
|
||||
src: smtpd.conf.j2
|
||||
dest: "/var/lib/lxc/{{ lxc_php_version }}/rootfs/etc/smtpd.conf"
|
||||
mode: "0644"
|
||||
notify: "Restart opensmtpd"
|
@ -0,0 +1,7 @@
|
||||
---
|
||||
|
||||
- name: Configure ssmtp (in the container)
|
||||
template:
|
||||
src: ssmtp.conf.j2
|
||||
dest: "/var/lib/lxc/{{ lxc_php_version }}/rootfs/etc/ssmtp/ssmtp.conf"
|
||||
mode: "0644"
|
@ -1,26 +1,19 @@
|
||||
---
|
||||
|
||||
- name: Configure opensmtpd
|
||||
template:
|
||||
src: smtpd.conf.j2
|
||||
dest: "/var/lib/lxc/{{ lxc_php_version }}/rootfs/etc/smtpd.conf"
|
||||
mode: "0644"
|
||||
notify: "Restart opensmtpd"
|
||||
|
||||
- name: Copy using inline content
|
||||
copy:
|
||||
content: "{{ evolinux_hostname }}.{{ evolinux_domain }}\n"
|
||||
dest: "/var/lib/lxc/{{ lxc_php_version }}/rootfs/etc/mailname"
|
||||
notify: "Restart opensmtpd"
|
||||
|
||||
- name: Configure timezone
|
||||
- name: Configure timezone for the container
|
||||
copy:
|
||||
remote_src: yes
|
||||
src: "/etc/timezone"
|
||||
dest: "/var/lib/lxc/{{ lxc_php_version }}/rootfs/etc/timezone"
|
||||
|
||||
- name: Ensure containers root directory is 755
|
||||
- name: Ensure container's root directory is 755
|
||||
file:
|
||||
path: "/var/lib/lxc/{{ lxc_php_version }}/rootfs"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: Configure mailname for the container
|
||||
copy:
|
||||
content: "{{ evolinux_hostname }}.{{ evolinux_domain }}\n"
|
||||
dest: "/var/lib/lxc/{{ lxc_php_version }}/rootfs/etc/mailname"
|
||||
notify: "Restart opensmtpd"
|
||||
|
@ -0,0 +1,21 @@
|
||||
#
|
||||
# Config file for sSMTP sendmail
|
||||
#
|
||||
# The person who gets all mail for userids < 1000
|
||||
# Make this empty to disable rewriting.
|
||||
root=postmaster
|
||||
|
||||
# The place where the mail goes. The actual machine name is required no
|
||||
# MX records are consulted. Commonly mailhosts are named mail.domain.com
|
||||
mailhub=127.0.0.1
|
||||
|
||||
# Where will the mail seem to come from?
|
||||
#rewriteDomain=
|
||||
|
||||
# The full hostname
|
||||
hostname={{ ansible_fqdn }}
|
||||
|
||||
# Are users allowed to set their own From: address?
|
||||
# YES - Allow the user to specify their own From: address
|
||||
# NO - Use the system generated From: address
|
||||
FromLineOverride=YES
|
Loading…
Reference in new issue