diff options
author | Paul Bonaud <paul.bonaud@fretlink.com> | 2019-02-26 19:18:49 +0100 |
---|---|---|
committer | Paul Bonaud <paul.bonaud@fretlink.com> | 2019-02-26 19:20:13 +0100 |
commit | dd3f7e2915be6d2868244b7f48222e23c0f58355 (patch) | |
tree | db96137410741e0662c1fa5daf25ff0b281677ae | |
parent | 9cc6546cdd714afb78b8fec25c8e9c83995f7d0c (diff) | |
download | ansible-clever-dd3f7e2915be6d2868244b7f48222e23c0f58355.tar.gz ansible-clever-dd3f7e2915be6d2868244b7f48222e23c0f58355.tar.zst ansible-clever-dd3f7e2915be6d2868244b7f48222e23c0f58355.zip |
login: make sure no existing apps are linked to the clever tools
-rw-r--r-- | tasks/login.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tasks/login.yml b/tasks/login.yml index 86ba714..f502be1 100644 --- a/tasks/login.yml +++ b/tasks/login.yml | |||
@@ -9,6 +9,11 @@ | |||
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: |