aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/deploy.yml
diff options
context:
space:
mode:
authorGaƫtan <36162164+gaetanfl@users.noreply.github.com>2018-02-23 18:10:48 +0100
committerGitHub <noreply@github.com>2018-02-23 18:10:48 +0100
commit4fdd3eb566b8b322789f74990181acc243ffb578 (patch)
tree4f0e9ffda46afe5e571d7071dd8e08c34a5b8928 /tasks/deploy.yml
parent4882b0d33ce42a3b01ac9689d1809e362f314d3f (diff)
parent8692bc2704f2a38890c93577e8f6743e611d5308 (diff)
downloadansible-clever-4fdd3eb566b8b322789f74990181acc243ffb578.tar.gz
ansible-clever-4fdd3eb566b8b322789f74990181acc243ffb578.tar.zst
ansible-clever-4fdd3eb566b8b322789f74990181acc243ffb578.zip
Merge pull request #1 from gaetanfl/first_try
Migrating single tasks file to a galaxy role
Diffstat (limited to 'tasks/deploy.yml')
-rw-r--r--tasks/deploy.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/tasks/deploy.yml b/tasks/deploy.yml
new file mode 100644
index 0000000..8b98d8c
--- /dev/null
+++ b/tasks/deploy.yml
@@ -0,0 +1,30 @@
1- name: Configure Drain
2 when: syslog_server is defined
3 command: clever-set-drain.sh
4 environment:
5 SYSLOG_UDP_SERVER: "{{ syslog_server }}"
6 CONFIGURATION_FILE: "{{ clever_login_file }}"
7
8- name: Configure Domain
9 when: domain is defined
10 command: clever-set-domain.sh
11 environment:
12 DOMAIN: "{{ domain }}"
13 CONFIGURATION_FILE: "{{ clever_login_file }}"
14
15- name: Push Environment
16 shell: "clever env import < {{ clever_app_confdir }}/env"
17 environment:
18 CONFIGURATION_FILE: "{{ clever_login_file }}"
19
20#TODO: Improve ssh-key validation
21- name: Accept Clever-Cloud servers
22 shell: "ssh-keyscan -H push-par-clevercloud-customers.services.clever-cloud.com >> ~/.ssh/known_hosts"
23
24- name: Push to Clever-Cloud to trigger deployment
25 command: "git push --force git+ssh://git@push-par-clevercloud-customers.services.clever-cloud.com/{{ clever_app }}.git HEAD:refs/heads/master"
26
27- name: Wait until deployment completion
28 command: clever-wait-deploy.sh
29 environment:
30 CONFIGURATION_FILE: "{{ clever_login_file }}"