aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/login.yml
blob: f502be13505dd85beac8f96ce234c4add8a0d6b2 (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
- name: Create .clever-cloud directory
  file:
    path: "{{ clever_app_confdir }}"
    state: directory

- name: Fill the login file
  template:
    src: cleverlogin.j2
    dest: "{{ clever_login_file }}"
  no_log: true

- name: Make sure no apps are already linked
  file:
    state: absent
    path: "{{ clever_app_root }}/.clever.json"

- name: Link app
  command: clever link {{ clever_app }}
  args:
    chdir: "{{ clever_app_root }}"
    creates: "{{ clever_app_root }}/.clever.json"
  environment:
    CONFIGURATION_FILE: "{{ clever_login_file }}"