Browse Source

newebe config: use template instead of file

+ make lines < 80 chars
Gelnior 10 years ago
parent
commit
e4021dda88
1 changed files with 17 additions and 4 deletions
  1. 17
    4
      roles/newebe/tasks/main.yml

+ 17
- 4
roles/newebe/tasks/main.yml View File

@@ -26,16 +26,29 @@
26 26
   user: name=newebe shell=/bin/bash groups=newebe
27 27
 
28 28
 - name: Create Newebe Config folder
29
-  file: path=/usr/local/etc/newebe/ owner=newebe group=newebe state=directory
29
+  file: path=/usr/local/etc/newebe/ 
30
+        owner=newebe 
31
+        group=newebe 
32
+        state=directory
30 33
 
31 34
 - name: Create Newebe folder
32
-  file: path=/usr/local/var/newebe/ owner=newebe group=newebe state=directory
35
+  file: path=/usr/local/var/newebe/ 
36
+        owner=newebe 
37
+        group=newebe 
38
+        state=directory
33 39
 
34 40
 - name: Create Newebe log folder
35
-  file: path=/usr/local/var/log/newebe/ owner=newebe group=newebe state=directory
41
+  file: path=/usr/local/var/log/newebe/ 
42
+        owner=newebe 
43
+        group=newebe 
44
+        state=directory
36 45
 
37 46
 - name: Set Newebe config file
38
-  copy: src=config.yaml dest=/usr/local/etc/newebe/config.yaml owner=newebe group=newebe
47
+  copy: src=config.yaml 
48
+  template: src=usr_local_etc_newebe_config.j2
49
+            dest=/usr/local/etc/newebe/config.yaml 
50
+            owner=newebe 
51
+            group=newebe
39 52
 
40 53
 - name: Set Supervisor config file
41 54
   copy: src=newebe.conf dest=/etc/supervisor/conf.d/newebe.conf

Loading…
Cancel
Save