{"id":18647707,"url":"https://github.com/artcom/ansible-role-git-repo","last_synced_at":"2026-02-23T19:44:29.145Z","repository":{"id":142420044,"uuid":"292563058","full_name":"artcom/ansible-role-git-repo","owner":"artcom","description":"Initializes a Git repository and optionally configures post-update and update hooks","archived":false,"fork":false,"pushed_at":"2020-09-11T12:47:06.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-12-27T12:23:18.989Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/artcom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2020-09-03T12:24:53.000Z","updated_at":"2020-09-11T12:46:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"439273e2-59a7-4db5-8dd0-8e67efb18617","html_url":"https://github.com/artcom/ansible-role-git-repo","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artcom%2Fansible-role-git-repo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artcom%2Fansible-role-git-repo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artcom%2Fansible-role-git-repo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artcom%2Fansible-role-git-repo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artcom","download_url":"https://codeload.github.com/artcom/ansible-role-git-repo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239449684,"owners_count":19640565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-07T06:27:37.055Z","updated_at":"2025-10-06T06:29:13.091Z","avatar_url":"https://github.com/artcom.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Repo\nInitializes a git repository and optionally configures post-update and update hooks. To use the hooks they must be present on the file system.\n\n## Requirements\nNone.\n\n## Role Variables\nAvailable variables are listed below, along with default values `(see defaults/main.yml)`:\n```yaml\ngit_repo_directory: null\ngit_repo_name: null\ngit_repo_owner: root\ngit_repo_group: root\ngit_repo_post_update_hook: null\ngit_repo_update_hook: null\ngit_server_restart_command: null\n```\nRequired variables (role will fail if the variables are not set):\n```yaml\ngit_repo_directory: \"string\"\ngit_repo_name: \"string\"\ngit_server_restart_command: \"string\"\n```\n\n## Dependencies\nNone.\n\n# Example Playbook\n```yaml\n- name: Initialize git repo\n  hosts: all\n  become: true\n  roles:\n    - role: git-repo\n      vars:\n        git_repo_directory: /var/local/repos\n        git_repo_name: repo_name\n        git_repo_post_update_hook: /usr/local/bin/post-update-hook\n        git_repo_update_hook: /usr/local/bin/update-hook\n        git_server_restart_command: \"systemctl restart git-server\"\n```\n\n## Test\n### Requirements\n- python \u003e= 3.7\n- docker\n\n### Run\n```bash\npip install -r requirements.txt\nmolecule test --all\n```\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartcom%2Fansible-role-git-repo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartcom%2Fansible-role-git-repo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartcom%2Fansible-role-git-repo/lists"}