2019-10-11 21:43:21 +02:00
|
|
|
---
|
|
|
|
|
2020-04-01 15:56:32 +02:00
|
|
|
- name: Configure timezone for the container
|
2019-10-11 21:43:21 +02:00
|
|
|
copy:
|
2019-11-14 16:36:44 +01:00
|
|
|
remote_src: yes
|
|
|
|
src: "/etc/timezone"
|
|
|
|
dest: "/var/lib/lxc/{{ lxc_php_version }}/rootfs/etc/timezone"
|
2019-10-11 21:43:21 +02:00
|
|
|
|
2020-04-01 15:56:32 +02:00
|
|
|
- name: Ensure container's root directory is 755
|
2019-10-11 21:43:21 +02:00
|
|
|
file:
|
2019-11-14 16:36:44 +01:00
|
|
|
path: "/var/lib/lxc/{{ lxc_php_version }}/rootfs"
|
2019-10-11 21:43:21 +02:00
|
|
|
state: directory
|
|
|
|
mode: '0755'
|
2020-04-01 15:56:32 +02:00
|
|
|
|
|
|
|
- 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"
|