WIP: Setup of a mail server #9
2 changed files with 8 additions and 8 deletions
|
@ -8,6 +8,6 @@ certbot:
|
||||||
|
|
||||||
nfs:
|
nfs:
|
||||||
src: "10.128.0.6:/data_mail" # caradoc
|
src: "10.128.0.6:/data_mail" # caradoc
|
||||||
mount-path: /var/vmail
|
mount_path: "/var/vmail"
|
||||||
dir-owner: vmail
|
dir_owner: vmail
|
||||||
dir-group: vmail
|
dir_group: vmail
|
||||||
|
|
|
@ -8,17 +8,17 @@
|
||||||
|
|
||||||
- name: Create mountable dir
|
- name: Create mountable dir
|
||||||
file:
|
file:
|
||||||
path: "{{ nfs.mount-path }}"
|
path: "{{ nfs.mount_path }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0644
|
mode: 0755
|
||||||
owner: "{{ nfs.dir-owner }}"
|
owner: "{{ nfs.dir_owner }}"
|
||||||
group: "{{ nfs.dir-group }}"
|
group: "{{ nfs.dir_group }}"
|
||||||
|
|
||||||
- name: Mount and add to fstab
|
- name: Mount and add to fstab
|
||||||
mount:
|
mount:
|
||||||
state: mounted # actively mounted and configured in fstab
|
state: mounted # actively mounted and configured in fstab
|
||||||
src: "{{ nfs.src }}"
|
src: "{{ nfs.src }}"
|
||||||
path: "{{ nfs.mount-path }}"
|
path: "{{ nfs.mount_path }}"
|
||||||
fstype: nfs
|
fstype: nfs
|
||||||
opts: defaults
|
opts: defaults
|
||||||
# don't specify dump and fsck to keep the 0 (don't) variable
|
# don't specify dump and fsck to keep the 0 (don't) variable
|
||||||
|
|
Loading…
Reference in a new issue