We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b84625f commit 7372006Copy full SHA for 7372006
vagrant/provisioning/roles/mystamps-app/defaults/main.yml
@@ -0,0 +1,3 @@
1
+---
2
+# possible values: test and prod
3
+profile: test
vagrant/provisioning/roles/mystamps-app/tasks/main.yml
@@ -26,6 +26,15 @@
26
mode: '0755'
27
state: directory
28
29
+- name: Creating /data/uploads
30
+ file:
31
+ path: /data/uploads
32
+ owner: mystamps
33
+ group: mystamps
34
+ mode: '0755'
35
+ state: directory
36
+ when: profile == 'prod'
37
+
38
- name: Running service
39
service:
40
name: mystamps
0 commit comments