]> git.immae.eu Git - github/fretlink/ansible-clever.git/blob - tasks/login.yml
Bump clever waiting time to 1 hour
[github/fretlink/ansible-clever.git] / tasks / login.yml
1 - name: Create .clever-cloud directory
2 file:
3 path: "{{ clever_app_confdir }}"
4 state: directory
5
6 - name: Fill the login file
7 template:
8 src: cleverlogin.j2
9 dest: "{{ clever_login_file }}"
10 no_log: true
11
12 - name: Make sure no apps are already linked
13 file:
14 state: absent
15 path: "{{ clever_app_root }}/.clever.json"
16
17 - name: Link app
18 command: clever link {{ clever_app }}
19 args:
20 chdir: "{{ clever_app_root }}"
21 creates: "{{ clever_app_root }}/.clever.json"
22 environment:
23 CONFIGURATION_FILE: "{{ clever_login_file }}"