From 7e03eafeaa6f827fa84a92b82ba0182c43a72e9e Mon Sep 17 00:00:00 2001 From: otthorn Date: Sun, 17 Jan 2021 13:27:24 +0100 Subject: [PATCH] dashes are evil, use underscore in var names --- host_vars/mail.auro.re.yml | 6 +++--- roles/nfs-client/tasks/main.yml | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/host_vars/mail.auro.re.yml b/host_vars/mail.auro.re.yml index 0c5d952..cc3ff9f 100644 --- a/host_vars/mail.auro.re.yml +++ b/host_vars/mail.auro.re.yml @@ -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 diff --git a/roles/nfs-client/tasks/main.yml b/roles/nfs-client/tasks/main.yml index ffc792c..0841ad3 100644 --- a/roles/nfs-client/tasks/main.yml +++ b/roles/nfs-client/tasks/main.yml @@ -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