{"id":48565153,"url":"https://github.com/huntdatacenter/charm-ansible","last_synced_at":"2026-04-08T12:50:04.966Z","repository":{"id":220994364,"uuid":"611265051","full_name":"huntdatacenter/charm-ansible","owner":"huntdatacenter","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-07T05:14:31.000Z","size":119,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-08T12:49:56.839Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/huntdatacenter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null}},"created_at":"2023-03-08T13:22:33.000Z","updated_at":"2025-02-12T06:55:47.000Z","dependencies_parsed_at":"2024-07-31T00:16:33.634Z","dependency_job_id":"70692a6c-e2c5-4498-8fb8-9cea3aa6342f","html_url":"https://github.com/huntdatacenter/charm-ansible","commit_stats":null,"previous_names":["huntdatacenter/charm-ansible"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/huntdatacenter/charm-ansible","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huntdatacenter%2Fcharm-ansible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huntdatacenter%2Fcharm-ansible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huntdatacenter%2Fcharm-ansible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huntdatacenter%2Fcharm-ansible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huntdatacenter","download_url":"https://codeload.github.com/huntdatacenter/charm-ansible/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huntdatacenter%2Fcharm-ansible/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31556239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2026-04-08T12:50:02.220Z","updated_at":"2026-04-08T12:50:04.858Z","avatar_url":"https://github.com/huntdatacenter.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# charm-ansible\n\nAnsible subordinate charm executes preconfigured ansible playbook\nto handle minor details that are out of scope of superior charm.\n\n## Deploy\n\nSee the example in `bundles` directory.\n\nSimple way to deploy playbook as a charm:\n\n```\njuju deploy huntdatacenter-ansible \"${app_name}\" --config playbook=@playbook.yaml\njuju integrate \"${app_name}:juju-info\" \"${superior_app}:juju-info\"\n```\n\n## Ansible playbook\n\nPlaybook should use tags matching charm hooks:\n- `install`\n- `start` (called after installation - start hook)\n- `stop` (called before removal - stop hook)\n- `config` (called after config changes - config-changed hook)\n\n## Configuration\n\nSee `config.yaml`.\n\n```\njuju config \"${app_name}\"\n```\n\n## Actions\n\nSee `actions.yaml`.\n\n```\njuju list-actions \"${app_name}\"\n```\n\n## Storage\n\nList storage pools\n```bash\njuju list-storage-pools -m $model\n```\n\nTest adding storage\n\n```bash\nunit_name=\npool=tmpfs  # lxd\nsize=2G\njuju add-storage -m $model \"${unit_name}\" \"data=${pool},${size}\"\n```\n\nUse config to set mode, owner, and group for the storage directory.\n\n## Development\n\nTo start development environment in Multipass run:\n\n```\nmake up\n```\n\nRun `make` or `make help` command to see help.\n\n```\nbuild                Build charm\ndeploy               Deploy charm\nname                 Print name of the VM\nlist                 List existing VMs\nup                   Start a VM\nfwd                  Forward app port: make unit=prometheus/0 port=9090 fwd\ndown                 Stop the VM\nssh                  Connect into the VM\ndestroy              Destroy the VM\nhelp                 Show this help\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuntdatacenter%2Fcharm-ansible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuntdatacenter%2Fcharm-ansible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuntdatacenter%2Fcharm-ansible/lists"}