aboutsummaryrefslogblamecommitdiffhomepage
path: root/tasks/login.yml
blob: f502be13505dd85beac8f96ce234c4add8a0d6b2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                      




                                              
                

                                       
                                  
                                                 

                                                 
- 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 }}"