{"id":19433738,"url":"https://github.com/sdelafond/docker-ansible-git-crypt","last_synced_at":"2025-04-24T20:31:48.436Z","repository":{"id":137061775,"uuid":"192661395","full_name":"sdelafond/docker-ansible-git-crypt","owner":"sdelafond","description":"Ansible docker image with support for ssh and gpg keys","archived":false,"fork":false,"pushed_at":"2024-03-07T16:35:55.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T10:21:23.184Z","etag":null,"topics":["ansible","docker","git-crypt","gitlab-ci"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/sdelafond.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2019-06-19T04:59:36.000Z","updated_at":"2021-03-09T17:50:02.000Z","dependencies_parsed_at":"2024-11-10T14:43:17.868Z","dependency_job_id":"4e55d412-6429-42b9-9585-ede869bf39c0","html_url":"https://github.com/sdelafond/docker-ansible-git-crypt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdelafond%2Fdocker-ansible-git-crypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdelafond%2Fdocker-ansible-git-crypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdelafond%2Fdocker-ansible-git-crypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdelafond%2Fdocker-ansible-git-crypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sdelafond","download_url":"https://codeload.github.com/sdelafond/docker-ansible-git-crypt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250704725,"owners_count":21473752,"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":["ansible","docker","git-crypt","gitlab-ci"],"created_at":"2024-11-10T14:40:50.423Z","updated_at":"2025-04-24T20:31:48.431Z","avatar_url":"https://github.com/sdelafond.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"Ansible docker image with support for ssh and gpg keys\n    \nThis facilitates the use of playbooks backed by a git-crypt-based\nrepository.\n\nExample of how to use this docker image in GitLab CI with a git-crypt'ed\nrepository:\n\n```yaml\n---\nstages:\n  - ansible\n\nbefore_script:\n  # add ssh config\n  - echo -e \"${ANSIBLE_SSH_CONFIG}\" \u003e ~/.ssh/config\n  # run ssh-agent and add ssh key to it\n  - eval $(ssh-agent -s)\n  - echo -e \"${SSH_PRIVATE_KEY}\" | tr -d '\\r' | ssh-add -\n  # add gpg key to keyring\n  - echo -e \"${GPG_PRIVATE_KEY}\" | gpg2 --import --batch\n  - echo -e \"${GPG_OWNERTRUST}\" | gpg2 --import-ownertrust\n  # run gpg-agent in allow-preset-passphrase mode\n  - gpgconf --kill gpg-agent || true\n  - gpg-agent --daemon --allow-preset-passphrase --max-cache-ttl 3600\n  # set gpg passphrase \n  - /usr/lib/gnupg2/gpg-preset-passphrase --preset --passphrase \"${GPG_PASSPHRASE}\" \"${GPG_PUBLIC_KEYGRIP}\"\n  # unlock the current repository\n  - git crypt unlock\n\nplaybook:\n  stage: ansible\n  image: sdelafond/docker-ansible-git-crypt:latest\n  script:\n    - ansible-playbook sites/foo.yml\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdelafond%2Fdocker-ansible-git-crypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdelafond%2Fdocker-ansible-git-crypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdelafond%2Fdocker-ansible-git-crypt/lists"}