GithubHelp home page GithubHelp logo

dalevizo / ansible-rsync Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 113 KB

An Ansible action plugin based on rsync to make synchronizing a file paths in your playbooks quick and easy.

JavaScript 6.82% Python 93.18%

ansible-rsync's Introduction

ansible-rsync

synchronize

An Ansible action plugin based rsync to make synchronizing a file paths in your playbooks quick and easy. Of course you could just use the command action to call rsync yourself, but you also have to add a fair number of boilerplate options and host facts. You still may need to. The synchronize action is meant to do common things with rsync easily. It does not provide access to the full power of rsync.

parameter required default choices comments
dest yes
    Path on the destination machine that will be synchronized from the source; The path can be absolute or relative.
    src yes
      Path on the source machine that will be synchronized to the destination; The path can be absolute or relative.
      verbosity no
        An integrater controling the amount of information returned during processing. The greater the value the more information rsync will report back. See the -v, --verbose option of the rsync man page for details. If verbosity is not defined or a value of 0 is assumed, the --quiet option is passed and information is supressed.
        mode no push
        • push
        • pull
        Specify the direction of the synchroniztion. In push mode the localhost or delgate is the source; In pull mode the inventory hostname in context is the source.
        delete no no
        • yes
        • no
        Delete files that don't exist (after transfer, not before) in src path.
        • Synchronization of src on the localhost to dest on the current inventory host
        synchronize: src=some/relative/path dest=/some/absolute/path
        
        • Synchronization of src path to dest path on the localhost
        local_action: synchronize src=some/relative/path dest=/some/absolute/path
        
        • Synchronization of src on the inventory host to the dest on the localhost.
        synchronize: mode=pull src=some/relative/path dest=/some/absolute/path
        
        • Synchronization of src on delegate to dest on the current inventory host
        synchronize: src=some/relative/path dest=/some/absolute/path
        
        • Synchronize and delete files in dest on inventory host not found in src of localhost.
        synchronize: src=some/relative/path dest=/some/absolute/path delete=yes
        
        • Synchronize and return verbose information from the rsync transfer.
        synchronize: src=some/relative/path dest=/some/absolute/path verbosity=1
        

        ansible-rsync's People

        Contributors

        dalevizo avatar tima avatar

        Stargazers

         avatar

        Watchers

         avatar

        Forkers

        leowmjw

        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.