aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/login.yml
diff options
context:
space:
mode:
authorpaulrbr-fl <43074087+paulrbr-fl@users.noreply.github.com>2019-02-26 19:24:31 +0100
committerGitHub <noreply@github.com>2019-02-26 19:24:31 +0100
commit015bb270e2c45fbcc8c774516d07b06e37f20094 (patch)
treedb96137410741e0662c1fa5daf25ff0b281677ae /tasks/login.yml
parente97c5303c31d2cfa4c3933aa209f7a78ced718d5 (diff)
parentdd3f7e2915be6d2868244b7f48222e23c0f58355 (diff)
downloadansible-clever-015bb270e2c45fbcc8c774516d07b06e37f20094.tar.gz
ansible-clever-015bb270e2c45fbcc8c774516d07b06e37f20094.tar.zst
ansible-clever-015bb270e2c45fbcc8c774516d07b06e37f20094.zip
Merge pull request #39 from paulrbr-fl/fix-loginv1.19
Fix login by removing any existing linked app
Diffstat (limited to 'tasks/login.yml')
-rw-r--r--tasks/login.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/tasks/login.yml b/tasks/login.yml
index 383be3a..f502be1 100644
--- a/tasks/login.yml
+++ b/tasks/login.yml
@@ -9,10 +9,15 @@
9 dest: "{{ clever_login_file }}" 9 dest: "{{ clever_login_file }}"
10 no_log: true 10 no_log: true
11 11
12- name: Make sure no apps are already linked
13 file:
14 state: absent
15 path: "{{ clever_app_root }}/.clever.json"
16
12- name: Link app 17- name: Link app
13 command: clever link {{ clever_app }} 18 command: clever link {{ clever_app }}
14 args: 19 args:
15 chdir: "{{ clever_app_root }}" 20 chdir: "{{ clever_app_root }}"
16 changed_when: true 21 creates: "{{ clever_app_root }}/.clever.json"
17 environment: 22 environment:
18 CONFIGURATION_FILE: "{{ clever_login_file }}" 23 CONFIGURATION_FILE: "{{ clever_login_file }}"