aboutsummaryrefslogtreecommitdiffstats
path: root/roles/nfsd/tasks
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-07-29 17:00:20 +0200
committerRomain Gonçalves <me@rgoncalves.se>2021-07-29 17:00:20 +0200
commitb232b894c3cbe087c8d504e91637dcf62199eed1 (patch)
treeea72a7d1a7f63c6425ee46785e1cec924351b2c3 /roles/nfsd/tasks
parent22126073344e60c405d086df37b64da0c6d3c086 (diff)
downloadinfrastructure-b232b894c3cbe087c8d504e91637dcf62199eed1.tar.gz
Bump to third revision of homelab
Diffstat (limited to 'roles/nfsd/tasks')
-rw-r--r--roles/nfsd/tasks/main.yml22
1 files changed, 1 insertions, 21 deletions
diff --git a/roles/nfsd/tasks/main.yml b/roles/nfsd/tasks/main.yml
index 7da9240..71e9b55 100644
--- a/roles/nfsd/tasks/main.yml
+++ b/roles/nfsd/tasks/main.yml
@@ -4,29 +4,9 @@
---
-- debug:
- var: nfsd_dirs
-
- name: ensure nfsd required variables are set
fail:
- when: item == "undefined"
- loop:
- - "{{ nfsd_dirs }}"
-
-- name: ensure nfs shared group exists
- group:
- name: "{{ nfsd_group }}"
- gid: "{{ nfsd_group_id }}"
- system: true
- state: absent
-
-- name: ensure nfs shared user exists
- user:
- name: "{{ nfsd_user }}"
- uid: "{{ nfsd_user_id }}"
- group: "{{ nfsd_group }}"
- system: true
- state: absent
+ when: nsfd_dirs is none
- name: ensure nfsd directory exists
file:
remember that computers suck.