{"id":16780412,"url":"https://github.com/papanito/ansible-role-git","last_synced_at":"2026-04-17T12:31:12.731Z","repository":{"id":55407113,"uuid":"325978366","full_name":"papanito/ansible-role-git","owner":"papanito","description":"This role is used for simplified git checkouts using a list of git repos.","archived":false,"fork":false,"pushed_at":"2023-08-05T10:59:57.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T20:21:22.490Z","etag":null,"topics":["ansible","ansible-role","git"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/papanito.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"papanito","ko_fi":"papanito","patreon":"papanito"}},"created_at":"2021-01-01T12:50:16.000Z","updated_at":"2025-03-03T02:56:30.000Z","dependencies_parsed_at":"2025-01-23T06:44:01.279Z","dependency_job_id":"f67cddec-ef27-485c-a3f9-1ec9d6da0df5","html_url":"https://github.com/papanito/ansible-role-git","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/papanito/ansible-role-git","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/papanito%2Fansible-role-git","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/papanito%2Fansible-role-git/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/papanito%2Fansible-role-git/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/papanito%2Fansible-role-git/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/papanito","download_url":"https://codeload.github.com/papanito/ansible-role-git/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/papanito%2Fansible-role-git/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31929476,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T10:35:34.458Z","status":"ssl_error","status_checked_at":"2026-04-17T10:35:09.472Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-role","git"],"created_at":"2024-10-13T07:35:05.611Z","updated_at":"2026-04-17T12:31:12.713Z","avatar_url":"https://github.com/papanito.png","language":null,"funding_links":["https://github.com/sponsors/papanito","https://ko-fi.com/papanito","https://patreon.com/papanito"],"categories":[],"sub_categories":[],"readme":"# Ansbile role \"papanito.git\"  \u003c!-- omit in toc --\u003e\n\n[![Ansible Role](https://img.shields.io/ansible/role/52578)](https://galaxy.ansible.com/papanito/git) [![Ansible Quality Score](https://img.shields.io/ansible/quality/52578)](https://galaxy.ansible.com/papanito/git) [![Ansible Role](https://img.shields.io/ansible/role/d/52578)](https://galaxy.ansible.com/papanito/git) [![GitHub issues](https://img.shields.io/github/issues/papanito/ansible-role-git)](https://github.com/papanito/ansible-role-git/issues) [![GitHub pull requests](https://img.shields.io/github/issues-pr/papanito/ansible-role-git)](https://github.com/papanito/ansible-role-git/pulls)\n\nThis role is used for simplified git checkouts. The idea is to provide a list of git repos to clone to a common directory, which can be overridden.\n\n## Requirements\n\n[Ansible Collection 'kewlfft.aur'](https://github.com/kewlfft/ansible-aur)\n\n## Role Variables\n\n### General parameters\n\nThese are all variables\n\n|Parameter|Description|Default Value|\n|---------|-----------|-------------|\n|`git_repos`|Dictionary of git repos, see [Parameters for `git_repos`](#parameters-for-git-repos)|-|\n|`accept_hostkey`|if `yes`, ensure that `-o StrictHostKeyChecking=no` is present as an ssh option.|`No`|\n|`install_packages`|if `no`  git packages are not installed, otherwise you need to run the role with `--ask-become-pass`|`Yes`|\n\n#### Parameters for `git_repos`\n\n`git_repos` are always mounted with [type `cifs` and in state `mounted`](https://docs.ansible.com/ansible/latest/modules/mount_module.html). However there are some options to provide:\n\n|Parameter|Description|Default Value|\n|---------|-----------|-------------|\n|`repo`|[Mandatory] git, SSH, or HTTP(S) protocol address of the git repository.|-|\n|`dest`|Base dir of path of where the repository should be checked out. This parameter is required, unless `clone` is set to `no`\u003cbr\u003eThe final path where the git checkout happens is `{{ dest }}/{{ git_repos.key }}`|-|\n|`remote`|Name of the remote.|`origin`|\n|`bare`|if `yes`, repository will be created as a bare repo, otherwise it will be a standard repo with a workspace.|`No`|\n|`clone`|If `no`, do not clone the repository even if it does not exist locally|`Yes`|\n|`force`|If `yes`, any modified files in the working repository will be discarded. Prior to 0.7, this was always 'yes' and could not be disabled. Prior to 1.9, the default was `yes`|`No`|\n|`recursive`|If `no` repository will be cloned without the `--recursive` option, skipping sub-modules.|`Yes`|\n|`update`|If `no` do not retrieve new revisions from the origin repository|`Yes`|\n|`dependencies`|List of packages (dependencies) to be installer. It suffices if providing the package name. However it supports additional package types if you add a list `{ name:PACKAGENAME, type:PACKAGETYPE}`, whereas `PACKAGETYPE` can be\u003cul\u003e\u003cli\u003e`aur`: Archlinux AUR\u003c/li\u003e\u003c/ul\u003e|`[]`|\n\n**Examples:**\n\nCheckout repo `git@github.com:qeeqbox/social-analyzer.git` to `~/Workspace/social-analyzer-demo`.\n\n```yml\n  vars:\n    git_repos:\n      social-analyzer-demo:\n        repo: git@github.com:qeeqbox/social-analyzer.git\n        dest: ~/Workspace\n```\n\nCheckout two repos to `~/Workspace/social-analyzer` and `~/Workspace/airgeddon`. In addition som packages are installed (which are required to run the `airgeddon` script)\n\n```yml\n  vars:\n    git_repos:\n      social-analyzer:\n        repo: git@github.com:qeeqbox/social-analyzer.git\n      airgeddon:\n        repo: git@github.com:v1s1t0r1sh3r3/airgeddon.git\n        dependencies:\n          - { name: crunch, type: aur }\n          - aircrack-nge\n```\n\n## Dependencies\n\nnone\n\n## Example Playbook\n\nRun `ansible-playbook ./tests/test.yml -i ./tests/inventory -e \"install_packages=No\"`\n\n```yaml\n---\n- hosts: localhost\n  vars:\n    default_workspace: \"~/Workspace/demo\"\n    git_repos:\n      social-analyzer:\n        repo: git@github.com:qeeqbox/social-analyzer.git\n\n roles:\n    - papanito.git\n```\n\n## License\n\nThis is Free Software, released under the terms of the Apache v2 license.\n\n## Author Information\n\nWritten by [Papanito](https://wyssmann.com) - [Gitlab](https://gitlab.com/papanito) / [Github](https://github.com/papanito)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpapanito%2Fansible-role-git","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpapanito%2Fansible-role-git","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpapanito%2Fansible-role-git/lists"}