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 2ca8d83 commit 21a228eCopy full SHA for 21a228e
tasks/main.yml
@@ -4,7 +4,15 @@
4
- name: Check that project path in dev as specified in configuration is valid and has wsgi script
5
local_action: stat path={{ conf.dev_path }}/index.wsgi
6
register: check_dev_path
7
- fail_when: check_dev_path.stat.exists == False
+ failed_when: check_dev_path.stat.exists == False
8
+
9
+- name: Check if gulp file exists
10
+ local_action: stat path={{ conf.dev_path }}/gulpfile.js
11
+ register: check_gulp_file
12
13
+- name: Execute gulp
14
+ local_action: command gulp build --production chdir={{ conf.dev_path }}
15
+ when: check_gulp_file.stat.exists == True
16
17
- name: Set Python executable
18
set_fact: python="`which python{{ conf.python_version | default('3.5') }}`"
0 commit comments