GithubHelp home page GithubHelp logo

josef-friedrich / ansible-module-gitupdater Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 72 KB

Ansible module for the git-repo-updater (gitup).

Home Page: https://github.com/earwig/git-repo-updater

License: GNU General Public License v3.0

Python 100.00%
ansible ansible-modules

ansible-module-gitupdater's Introduction

ansible-module-gitupdater

Ansible module for the git-repo-updater (gitup).

> GITUPDATER    (/etc/ansible/library/gitupdater.py)

        gitup https://github.com/earwig/git-repo-updater is a console
        script that allows you to easily update multiple git
        repositories at once.

ADDED IN: version 1.0

OPTIONS (= is mandatory):

- cleanup
        Clean up the repositories that have been deleted.
        [Default: False]

- path
        Full path to the git repository.
        [Default: False]

- state
        State of the gitup configuration for this repository. The git
        repository itself is not affected.
        (Choices: present, absent)[Default: present]


REQUIREMENTS:  git-repo-updater

AUTHOR: Josef Friedrich (@Josef-Friedrich)

METADATA:
  metadata_version: '1.0'
  status:
  - preview
  supported_by: community


EXAMPLES:

# Bookmark a repository, state can be omitted
- gitupdater:
    path: /var/repos/project

# Bookmark a repository
- gitupdater:
    path: /var/repos/project
    state: present

# Delete bookmark
- gitupdater:
    path: /var/repos/project
    state: absent

# Delete non-existent repositories
- gitupdater:
    cleanup: true


RETURN VALUES:
- path
        Full path to the git repository

        returned: always
        sample: /path/to/repository
        type: string

- state
        State of the gitup configuration for this repository

        returned: always
        sample: present
        type: string

Development

Test functionality

/usr/local/src/ansible/hacking/test-module -m gitupdater.py -a

Test documentation

source /usr/local/src/ansible/hacking/env-setup
/usr/local/src/ansible/test/sanity/validate-modules/validate-modules --arg-spec --warnings gitupdater.py

Generate documentation

ansible-doc -M . gitupdater

ansible-module-gitupdater's People

Contributors

josef-friedrich avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  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.