{"id":18745793,"url":"https://github.com/moshloop/ansible-run","last_synced_at":"2025-09-20T11:20:14.328Z","repository":{"id":138334079,"uuid":"136364344","full_name":"moshloop/ansible-run","owner":"moshloop","description":null,"archived":false,"fork":false,"pushed_at":"2019-08-18T13:03:14.000Z","size":844,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-20T08:09:37.643Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/moshloop.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":"2018-06-06T17:38:59.000Z","updated_at":"2021-03-26T07:42:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"b32a673c-9729-4791-b663-e24fe67a6435","html_url":"https://github.com/moshloop/ansible-run","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/moshloop/ansible-run","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshloop%2Fansible-run","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshloop%2Fansible-run/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshloop%2Fansible-run/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshloop%2Fansible-run/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moshloop","download_url":"https://codeload.github.com/moshloop/ansible-run/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshloop%2Fansible-run/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276085274,"owners_count":25582517,"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","status":"online","status_checked_at":"2025-09-20T02:00:10.207Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-07T16:19:41.207Z","updated_at":"2025-09-20T11:20:14.257Z","avatar_url":"https://github.com/moshloop.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Runner\n\nA wrapper that runs ansible in a docker container to eliminate python dependency hell, bundles the dependencies needed for the following modules:\n\n* aws\n* azure\n* vmware\n* bigip\n* panos\n* win\n\n### ansible-run\n```bash\npip install ansible-run\nansible-run\n# drop into a shell with ansible and friends pre-installed\n```\n\n**Environment Variables:**\n* `AWS_*` environment variables\n\n**Volumes:**\n* `/ssh` (for use with [whilp/ssh-agent](https://github.com/whilp/ssh-agent))\n* `/var/run/docker.sock` (so that docker can talk to itself)\n* `~/.aws`\n* `~/.ansible`\n* `/work`\n* `$PWD`\n\n### ansible-role\n```bash\nansible-role moshloop.java # cross-platform install of java\n```\n\n### ansible-test\n\n`ansible-test` will test a playbook using a docker container:\n\n```bash\nansible-test playbook.yml # defaults to centos7\nimage=ubuntu1804 ansible-test playbook.yml\n```\n\nThe playbook will be tested for idempotency by running it a 2nd time and ensuring nothing is marked as changed, disable it with:\n```bash\nidempotency=false ansible-test playbook.yml\n```\n\nOnce the playbook is run any [InSpec](https://www.inspec.io) (.rb) or [bats](https://github.com/sstephenson/bats) (.bats) tests found with the same name (e.g. `playbook.rb`) will be executed.\n\nSee it in action [here](https://github.com/moshloop/ansible-java/tree/master/tests)\n\n### ansible-vault-run\n\n`ansible-vault-run` will decrypt a vault and run a script with the variables exported as environment variables\n    echo \"Decrypts an ansible-vault and runs script with the contents as environment variables\"\n```bash\nansible-vault-run vault \"echo \\$password\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoshloop%2Fansible-run","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoshloop%2Fansible-run","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoshloop%2Fansible-run/lists"}