blob: 8b98d8c5f5d6cf291145a0671d496b5f5ce45726 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
- name: Configure Drain
when: syslog_server is defined
command: clever-set-drain.sh
environment:
SYSLOG_UDP_SERVER: "{{ syslog_server }}"
CONFIGURATION_FILE: "{{ clever_login_file }}"
- name: Configure Domain
when: domain is defined
command: clever-set-domain.sh
environment:
DOMAIN: "{{ domain }}"
CONFIGURATION_FILE: "{{ clever_login_file }}"
- name: Push Environment
shell: "clever env import < {{ clever_app_confdir }}/env"
environment:
CONFIGURATION_FILE: "{{ clever_login_file }}"
#TODO: Improve ssh-key validation
- name: Accept Clever-Cloud servers
shell: "ssh-keyscan -H push-par-clevercloud-customers.services.clever-cloud.com >> ~/.ssh/known_hosts"
- name: Push to Clever-Cloud to trigger deployment
command: "git push --force git+ssh://git@push-par-clevercloud-customers.services.clever-cloud.com/{{ clever_app }}.git HEAD:refs/heads/master"
- name: Wait until deployment completion
command: clever-wait-deploy.sh
environment:
CONFIGURATION_FILE: "{{ clever_login_file }}"
|