GithubHelp home page GithubHelp logo

intellits.utils's Introduction

Ansible Collection - Ansible FTP module

Documentation for the collection.

Module source https://github.com/melmorabity/ansible-ftp

ftp

Transfers files and directories from or to ftp servers.

Synopsis

Transfers files and directories from or to FTP servers

Options

parameter required default choices comments
src yes Path on the source host that will be synchronized to the destination.
direction no push
  • push
  • pull
Specify the direction of the synchronization. In push mode the localhost or delegate is the source; In pull mode the remote FTP server is the source.
protocol no ftp
  • ftp
  • ftps
FTP protocol to use.
retries no 3 Specifies the number of retries the upload should by tried before it is considered failed.
dest yes Path on the destination host that will be synchronized from the source.
interval no 1 Configures the interval in seconds to wait between retries of the upload.
host yes FTP server.
ftp_mode no passive
  • passive
  • active
FTP mode.
user no The username used to authenticate with.
timeout no Timeout in seconds for FTP request.
password no The password used to authenticate with.
backup no False Create a remote backup file including the timestamp information so you can get the original file back if you somehow clobbered it incorrectly.
port no 21 FTP port.
tmp_dest no Absolute path of where temporary file is downloaded to. Defaults to TMPDIR, TEMP or TMP env variables or a platform specific value (https://docs.python.org/2/library/tempfile.html#tempfile.tempdir).
others no All arguments accepted by the file module also work when direction is pull.

Examples

# Upload a local file to a remote FTP server
- local_action:
    module: ftp
    host: my.ftp.server.net
    user: myuser
    password: mypassword
    src: /tmp/myfile.txt
    dest: /dest
    direction: push

# Download a directory from a remote FTP server
- local_action:
    module: ftp
    host: my.ftp.server.net
    user: myuser
    password: mypassword
    src: /backups
    dest: /var/backups/
    direction: pull

intellits.utils's People

Contributors

intellits avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.