Commit 063b50b5 authored by ∞'s avatar 💻

Fix empty command bug

parent b4aeba44
......@@ -112,7 +112,7 @@
state: '{{ state|default("present") }}'
- name: Execute post-deploy commands
when: postdeploy is defined and postdeploy.strip()|length
when: postdeploy is defined and postdeploy.strip().replace('\n', '')|length
shell: '{{ postdeploy }}'
args:
chdir: '{{ home }}'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment