Description: Fix EEXISTS
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/ansible/+bug/1631996
Forwarded: not-needed

Index: ansible-2.0.0.2/lib/ansible/modules/core/files/file.py
===================================================================
--- ansible-2.0.0.2.orig/lib/ansible/modules/core/files/file.py
+++ ansible-2.0.0.2/lib/ansible/modules/core/files/file.py
@@ -288,7 +288,7 @@ def main():
                         except OSError, ex:
                             # Possibly something else created the dir since the os.path.exists
                             # check above. As long as it's a dir, we don't need to error out.
-                            if not (ex.errno == errno.EEXISTS and os.isdir(curpath)):
+                            if not (ex.errno == errno.EEXIST and os.isdir(curpath)):
                                 raise
                         tmp_file_args = file_args.copy()
                         tmp_file_args['path']=curpath
