]> git.immae.eu Git - github/fretlink/ansible-clever.git/commitdiff
login: make sure no existing apps are linked to the clever tools 39/head
authorPaul Bonaud <paul.bonaud@fretlink.com>
Tue, 26 Feb 2019 18:18:49 +0000 (19:18 +0100)
committerPaul Bonaud <paul.bonaud@fretlink.com>
Tue, 26 Feb 2019 18:20:13 +0000 (19:20 +0100)
tasks/login.yml

index 86ba714718165e9ebca53f48dd03a3c3306e567e..f502be13505dd85beac8f96ce234c4add8a0d6b2 100644 (file)
@@ -9,6 +9,11 @@
     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: