dashes are evil, use underscore in var names

This commit is contained in:
otthorn 2021-01-17 13:27:24 +01:00
parent e77047a532
commit 7e03eafeaa
2 changed files with 8 additions and 8 deletions

View file

@ -8,6 +8,6 @@ certbot:
nfs:
src: "10.128.0.6:/data_mail" # caradoc
mount-path: /var/vmail
dir-owner: vmail
dir-group: vmail
mount_path: "/var/vmail"
dir_owner: vmail
dir_group: vmail

View file

@ -8,17 +8,17 @@
- name: Create mountable dir
file:
path: "{{ nfs.mount-path }}"
path: "{{ nfs.mount_path }}"
state: directory
mode: 0644
owner: "{{ nfs.dir-owner }}"
group: "{{ nfs.dir-group }}"
mode: 0755
owner: "{{ nfs.dir_owner }}"
group: "{{ nfs.dir_group }}"
- name: Mount and add to fstab
mount:
state: mounted # actively mounted and configured in fstab
src: "{{ nfs.src }}"
path: "{{ nfs.mount-path }}"
path: "{{ nfs.mount_path }}"
fstype: nfs
opts: defaults
# don't specify dump and fsck to keep the 0 (don't) variable