summaryrefslogtreecommitdiff
path: root/windows/win_copy.py
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2014-12-17 12:48:01 -0500
committerBrian Coca <brian.coca+git@gmail.com>2014-12-17 12:48:01 -0500
commita942e5f85319c6516dbb9f2989cd55b4865b4518 (patch)
treefb710e354eee0c7640c732db06e5e0d2d7ac4691 /windows/win_copy.py
parent443951ce823c3ec41d1a092562643da707ddf95a (diff)
downloadansible-modules-core-a942e5f85319c6516dbb9f2989cd55b4865b4518.tar.gz
Revert "Merge pull request #384 from jhawkesworth/win_copy_file_template_ansible_modules_core_1"
I missed some discussion in devel, these need more work before inclusion This reverts commit 58bfebb0477adda2a676381850038e0abf8c8f00, reversing changes made to 27dee77ca0449bdb338b2db89e044d1d9b553b4a.
Diffstat (limited to 'windows/win_copy.py')
-rw-r--r--windows/win_copy.py60
1 files changed, 0 insertions, 60 deletions
diff --git a/windows/win_copy.py b/windows/win_copy.py
deleted file mode 100644
index 7d0b49e5..00000000
--- a/windows/win_copy.py
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-
-# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
-#
-# This file is part of Ansible
-#
-# Ansible is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# Ansible is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
-
-import os
-import time
-
-DOCUMENTATION = '''
----
-module: win_copy
-version_added: "1.8"
-short_description: Copies files to remote locations on windows hosts.
-description:
- - The M(win_copy) module copies a file on the local box to remote windows locations.
-options:
- src:
- description:
- - Local path to a file to copy to the remote server; can be absolute or relative.
- If path is a directory, it is copied recursively. In this case, if path ends
- with "/", only inside contents of that directory are copied to destination.
- Otherwise, if it does not end with "/", the directory itself with all contents
- is copied. This behavior is similar to Rsync.
- required: false
- default: null
- aliases: []
- dest:
- description:
- - Remote absolute path where the file should be copied to. If src is a directory,
- this must be a directory too. Use \\ for path separators.
- required: true
- default: null
-author: Michael DeHaan
-notes:
- - The "win_copy" module recursively copy facility does not scale to lots (>hundreds) of files.
- Instead, you may find it better to create files locally, perhaps using win_template, and
- then use win_get_url to put them in the correct location.
-'''
-
-EXAMPLES = '''
-# Example from Ansible Playbooks
-- win_copy: src=/srv/myfiles/foo.conf dest=c:\\TEMP\\foo.conf
-
-'''
-