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