aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2017-05-29 15:38:57 +0200
committerTharre <tharre3@gmail.com>2017-05-29 15:38:57 +0200
commit552bac46af4ceb0069d7d34a0a229c461ce7d0b7 (patch)
tree19d84022f86d97698a1c99b0547ef1c1b0f94478
parent3c82a960f8770563e3788c85122e895a5cd48f7d (diff)
downloadansible-teamspeak-552bac46af4ceb0069d7d34a0a229c461ce7d0b7.tar.gz
ansible-teamspeak-552bac46af4ceb0069d7d34a0a229c461ce7d0b7.tar.xz
ansible-teamspeak-552bac46af4ceb0069d7d34a0a229c461ce7d0b7.zip
Fix crash with userdata.stat.exists
-rw-r--r--tasks/install.yml2
-rw-r--r--tasks/main.yml2
2 files changed, 2 insertions, 2 deletions
diff --git a/tasks/install.yml b/tasks/install.yml
index afd4c8b..f7d6dab 100644
--- a/tasks/install.yml
+++ b/tasks/install.yml
@@ -35,7 +35,7 @@
# If user data has been found, this is an upgrade situation.
- include: ts3update.yml
- when: userdata.stat.exists is defined and userdata.stat.exists == True
+ when: userdata.stat is defined and userdata.stat.exists == True
# Created a new directory? Extract the files into it. Overwrites existing.
- name: "Install : Extract TeamSpeak {{ teamspeak.version }} Server files"
diff --git a/tasks/main.yml b/tasks/main.yml
index 43b69cc..c29fde0 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -62,4 +62,4 @@
# Display Teamspeak 3 Server Token and Password if this is a new installation
# (a new installation has no userdata, and this is checked for in install.yml)
- include: display.yml
- when: userdata.stat.exists is defined and userdata.stat.exists == False
+ when: userdata.stat is defined and userdata.stat.exists == False