Minor writefreely change.
authorLuke Hoersten <luke@hoersten.org>
Sun, 28 Jun 2020 09:00:01 -0500
changeset 51 19fa7aa47bf1
parent 50 15edca738a31
child 52 5a5071d4eaad
Minor writefreely change.
writefreely/tasks/main.yaml
--- a/writefreely/tasks/main.yaml	Sun Jun 28 08:59:54 2020 -0500
+++ b/writefreely/tasks/main.yaml	Sun Jun 28 09:00:01 2020 -0500
@@ -25,25 +25,18 @@
     mode: "0755"
   notify: migrate db
 
-- name: create root dir
+- name: create instance dir
   become: yes
   file:
-    path: "{{writefreely_dir}}"
+    path: "{{item}}"
     state: "directory"
     owner: "{{writefreely_user}}"
     group: "{{writefreely_user}}"
     mode: "0755"
   notify: reload service
-
-- name: create instance dir
-  become: yes
-  file:
-    path: "{{writefreely_dir}}/{{writefreely_instance}}"
-    state: "directory"
-    owner: "{{writefreely_user}}"
-    group: "{{writefreely_user}}"
-    mode: "0755"
-  notify: reload service
+  loop:
+    - "{{writefreely_dir}}"
+    - "{{writefreely_dir}}/{{writefreely_instance}}"
 
 - name: install static content
   become: yes