lnd/tasks/main.yaml
changeset 9 ddf84e986362
parent 6 e0672e50e2c5
child 10 26ed67281db6
--- a/lnd/tasks/main.yaml	Thu May 14 20:19:45 2020 -0500
+++ b/lnd/tasks/main.yaml	Sat May 16 17:59:15 2020 -0500
@@ -38,15 +38,15 @@
 - name: create lnd data dir
   become: yes
   file:
-    path: "{{item}}"
+    path: "{{item.path}}"
     state: "directory"
     owner: "{{lnd_user}}"
     group: "{{lnd_user}}"
-    mode: "0770"
+    mode: "{{item.mode}}"
   loop:
-    - "{{lnd_data_dir}}"
-    - "{{lnd_log_dir}}"
-    - "{{lnd_conf_dir}}"
+    - { path: "{{lnd_data_dir}}", mode: "0750" }
+    - { path: "{{lnd_log_dir}}", mode: "0750" }
+    - { path: "{{lnd_conf_dir}}", mode: "0755" }
 
 - name: configure lnd
   become: yes