We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f18b32 commit 5c60b86Copy full SHA for 5c60b86
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