{"id":13585431,"url":"https://github.com/kkirsche/ansible-generator","last_synced_at":"2025-08-21T01:32:11.452Z","repository":{"id":49812181,"uuid":"99927682","full_name":"kkirsche/ansible-generator","owner":"kkirsche","description":"Generate ansible directory structures quickly and easily","archived":false,"fork":false,"pushed_at":"2022-08-05T11:17:24.000Z","size":219,"stargazers_count":72,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-03T23:51:28.858Z","etag":null,"topics":["ansible","automation","generator"],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/ansible-generator","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-4-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kkirsche.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"kkirsche"}},"created_at":"2017-08-10T13:44:02.000Z","updated_at":"2025-04-20T09:08:23.000Z","dependencies_parsed_at":"2022-08-03T13:00:22.606Z","dependency_job_id":null,"html_url":"https://github.com/kkirsche/ansible-generator","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/kkirsche/ansible-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkirsche%2Fansible-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkirsche%2Fansible-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkirsche%2Fansible-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkirsche%2Fansible-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kkirsche","download_url":"https://codeload.github.com/kkirsche/ansible-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkirsche%2Fansible-generator/sbom","scorecard":{"id":562676,"data":{"date":"2025-08-11","repo":{"name":"github.com/kkirsche/ansible-generator","commit":"f93e8be6998ccb74d272fe2bb3900d1a0347500c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.5,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: BSD 4-Clause \"Original\" or \"Old\" License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v3.0.0 not signed: https://api.github.com/repos/kkirsche/ansible-generator/releases/71369648","Warn: release artifact v3.0.0 does not have provenance: https://api.github.com/repos/kkirsche/ansible-generator/releases/71369648"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"40 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-cpx3-93w7-457x","Warn: Project is vulnerable to: GHSA-jpvw-p8pr-9g2x","Warn: Project is vulnerable to: PYSEC-2020-220","Warn: Project is vulnerable to: GHSA-32p4-gm2c-wmch","Warn: Project is vulnerable to: GHSA-7j69-qfc3-2fq9","Warn: Project is vulnerable to: GHSA-99w6-3xph-cx78","Warn: Project is vulnerable to: PYSEC-2024-36 / GHSA-h24r-m9qc-pvpg","Warn: Project is vulnerable to: GHSA-jpxc-vmjf-9fcj","Warn: Project is vulnerable to: GHSA-ww3m-ffrm-qvqv","Warn: Project is vulnerable to: PYSEC-2024-48 / GHSA-fj7x-q9j7-g6q6","Warn: Project is vulnerable to: PYSEC-2024-230 / GHSA-248v-346w-9cwc","Warn: Project is vulnerable to: PYSEC-2022-42986 / GHSA-43fp-rhv2-5gv8","Warn: Project is vulnerable to: PYSEC-2023-135 / GHSA-xqr8-7jwr-rhp7","Warn: Project is vulnerable to: GHSA-39hc-v87j-747x","Warn: Project is vulnerable to: GHSA-3ww4-gg4f-jr7f","Warn: Project is vulnerable to: GHSA-5cpq-8wj7-hf2v","Warn: Project is vulnerable to: GHSA-9v9h-cgj8-h64p","Warn: Project is vulnerable to: GHSA-h4gh-qq45-vh27","Warn: Project is vulnerable to: PYSEC-2023-254 / GHSA-jfhm-5ghh-2f97","Warn: Project is vulnerable to: GHSA-jm77-qphf-c4w8","Warn: Project is vulnerable to: GHSA-v8gr-m533-ghj9","Warn: Project is vulnerable to: GHSA-w7pp-m8wf-vj6r","Warn: Project is vulnerable to: GHSA-x4qr-2fvf-3mr5","Warn: Project is vulnerable to: PYSEC-2024-4 / GHSA-2mqj-m65w-jghx","Warn: Project is vulnerable to: PYSEC-2023-165 / GHSA-cwvm-v4w8-q58c","Warn: Project is vulnerable to: PYSEC-2022-42992 / GHSA-hcpj-qp55-gfph","Warn: Project is vulnerable to: PYSEC-2023-137 / GHSA-pr76-5cm5-w9cj","Warn: Project is vulnerable to: PYSEC-2023-161 / GHSA-wfm5-v35h-vwf4","Warn: Project is vulnerable to: GHSA-cpwx-vrp4-4pq7","Warn: Project is vulnerable to: GHSA-gmj6-6f8f-6699","Warn: Project is vulnerable to: GHSA-h5c8-rqwp-cp95","Warn: Project is vulnerable to: GHSA-h75v-3vvj-5mfj","Warn: Project is vulnerable to: GHSA-q2x7-8rv6-6q7h","Warn: Project is vulnerable to: PYSEC-2022-42969","Warn: Project is vulnerable to: GHSA-29pr-6jr8-q5jm","Warn: Project is vulnerable to: GHSA-g92j-qhmh-64v2","Warn: Project is vulnerable to: GHSA-34jh-p97f-mpxf","Warn: Project is vulnerable to: PYSEC-2023-212 / GHSA-g4mx-q9vg-27p4","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v","Warn: Project is vulnerable to: PYSEC-2023-192 / GHSA-v845-jxx5-vc9f"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T14:08:35.599Z","repository_id":49812181,"created_at":"2025-08-20T14:08:35.599Z","updated_at":"2025-08-20T14:08:35.599Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271415022,"owners_count":24755628,"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-08-20T02:00:09.606Z","response_time":69,"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":["ansible","automation","generator"],"created_at":"2024-08-01T15:04:56.280Z","updated_at":"2025-08-21T01:32:11.204Z","avatar_url":"https://github.com/kkirsche.png","language":"Python","funding_links":["https://github.com/sponsors/kkirsche"],"categories":["Python"],"sub_categories":[],"readme":"# Ansible Generator\n\n## Description\n\nAnsible Generator is a python program designed to simplify creating a new\nansible playbook by creating the necessary directory structure for the user\nbased on ansible's best practices, as outlined in [content organization best practices](https://docs.ansible.com/ansible/2.8/user_guide/playbooks_best_practices.html#content-organization).\n\n## Installation\n\n### PIP (recommended)\n\n```\npip install -U ansible-generator\n```\n\n### Source\n\n```\ngit clone https://github.com/kkirsche/ansible-generator.git\ncd ansible-generator\ncurl -sSL https://install.python-poetry.org | python3 -\npoetry build\n```\n\n## Usage\n\n### Help Text\n\n```\nusage: ansible-generate [-h] [-a] [-i INVENTORIES [INVENTORIES ...]]\n                        [-r ROLES [ROLES ...]] [-v]\n                        [-p PROJECTS [PROJECTS ...]] [--version]\n\nGenerate an ansible playbook directory structure\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -a, --alternate-layout\n  -i INVENTORIES [INVENTORIES ...], --inventories INVENTORIES [INVENTORIES ...]\n  -r ROLES [ROLES ...], --roles ROLES [ROLES ...]\n  -v, --verbose\n  -p PROJECTS [PROJECTS ...], --projects PROJECTS [PROJECTS ...]\n  --version             show program's version number and exit\n```\n\n#### Defaults\n\n- `alternate-layout` --- `False`\n- `verbose` --- `False`\n- `inventories` --- `['production', 'staging']`\n- `roles` --- `[]`\n- `projects` --- `[]`\n\n### Example\n\n#### Current directory\n\n```\nansible-generate\n```\n\n#### New-project\n\n```\nansible-generate -p playbook_name\n```\n\n#### Alternate Layout\n\n```\nansible-generate -a\n```\n\n#### Custom Inventories\n\n```\nansible-generate -i production staging lab\n```\n\n#### Roles\n\nThis portion of the tool relies on Ansible's `ansible-galaxy` command line\napplication\n\n```\nansible-generate -r role1 role2\n```\n\n#### Output\n\n```\n~/Downloads ❯❯❯ ansible-generate -i production staging lab -r common ubuntu centos -a -p network_security_baseline\ncreating directory /Users/example_user/Downloads/network_security_baseline/roles\ncreating directory /Users/example_user/Downloads/network_security_baseline/inventories/production/group_vars\ncreating directory /Users/example_user/Downloads/network_security_baseline/inventories/production/host_vars\ncreating directory /Users/example_user/Downloads/network_security_baseline/inventories/staging/group_vars\ncreating directory /Users/example_user/Downloads/network_security_baseline/inventories/staging/host_vars\ncreating directory /Users/example_user/Downloads/network_security_baseline/inventories/lab/group_vars\ncreating directory /Users/example_user/Downloads/network_security_baseline/inventories/lab/host_vars\ncreating file /Users/example_user/Downloads/network_security_baseline/inventories/production/hosts\ncreating file /Users/example_user/Downloads/network_security_baseline/inventories/staging/hosts\ncreating file /Users/example_user/Downloads/network_security_baseline/inventories/lab/hosts\ncreating file /Users/example_user/Downloads/network_security_baseline/site.yml\nansible galaxy output for role common:\n- common was created successfully\nansible galaxy output for role ubuntu:\n- ubuntu was created successfully\nansible galaxy output for role centos:\n- centos was created successfully\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkirsche%2Fansible-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkkirsche%2Fansible-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkirsche%2Fansible-generator/lists"}