aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/post_deploy.yml
diff options
context:
space:
mode:
authorPaul Bonaud <paul.bonaud@fretlink.com>2018-11-30 15:57:33 +0100
committerPaul Bonaud <paul.bonaud@fretlink.com>2018-11-30 16:12:43 +0100
commit567977285542274d3fef0fd3df556e5f9bbc1f79 (patch)
treea3515e66da83c0f2818c885979df82992c3e0342 /tasks/post_deploy.yml
parente3f725a16f48d303ddbd8afed0bcdd50c923b33f (diff)
downloadansible-clever-567977285542274d3fef0fd3df556e5f9bbc1f79.tar.gz
ansible-clever-567977285542274d3fef0fd3df556e5f9bbc1f79.tar.zst
ansible-clever-567977285542274d3fef0fd3df556e5f9bbc1f79.zip
feat(post_deploy): Add a post deploy task to fetch deployed env
In some cases you might need to retrieve the ENV which is currently in use by your clever application recently deployed. If you specify a `clever_env_output_file` that is exactly what you will get!
Diffstat (limited to 'tasks/post_deploy.yml')
-rw-r--r--tasks/post_deploy.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/tasks/post_deploy.yml b/tasks/post_deploy.yml
new file mode 100644
index 0000000..11116e8
--- /dev/null
+++ b/tasks/post_deploy.yml
@@ -0,0 +1,9 @@
1---
2- name: Retrieve clever env if needed
3 shell: "clever env > {{ clever_env_output_file }}"
4 args:
5 chdir: "{{ clever_app_root }}"
6 creates: "{{ clever_env_output_file }}"
7 environment:
8 CONFIGURATION_FILE: "{{ clever_login_file }}"
9 when: clever_env_output_file is defined