Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/josef-friedrich/ansible-module-gitupdater
Ansible module for the git-repo-updater (gitup).
https://github.com/josef-friedrich/ansible-module-gitupdater
ansible ansible-modules
Last synced: 23 days ago
JSON representation
Ansible module for the git-repo-updater (gitup).
- Host: GitHub
- URL: https://github.com/josef-friedrich/ansible-module-gitupdater
- Owner: Josef-Friedrich
- License: gpl-3.0
- Created: 2017-05-28T06:46:00.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-11-09T09:58:58.000Z (about 1 month ago)
- Last Synced: 2024-11-09T10:31:12.832Z (about 1 month ago)
- Topics: ansible, ansible-modules
- Language: Python
- Homepage: https://github.com/earwig/git-repo-updater
- Size: 140 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
.. image:: https://github.com/Josef-Friedrich/ansible-module-gitupdater/actions/workflows/tests.yml/badge.svg
:target: https://github.com/Josef-Friedrich/ansible-module-gitupdater/actions/workflows/tests.yml
:alt: Testsansible-module-gitupdater
=========================Ansible module for the `git-repo-updater `__ (gitup).
::
> MODULE 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.OPTIONS (red indicates it is required):
cleanup Clean up the repositories that have been deleted.
default: falsepath Full path to the git repository.
default: falsestate State of the gitup configuration for this repository. The git
repository itself is not affected.
choices: [present, absent]
default: presentREQUIREMENTS: git-repo-updater
AUTHOR: Josef Friedrich (@Josef-Friedrich)
METADATA: metadata_version: '1.0'
status:
- preview
supported_by: communityEXAMPLES:
# 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: trueRETURN VALUES:
path Full path to the git repository
returned: always
sample: /path/to/repository
type: stringstate State of the gitup configuration for this repository
returned: always
sample: present
type: stringDevelopment
===========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.pyGenerate documentation
----------------------::
ansible-doc -M . gitupdater