{"id":13585903,"url":"https://github.com/pageflt/ansible-jailventory","last_synced_at":"2025-04-07T10:32:06.939Z","repository":{"id":79263297,"uuid":"145041929","full_name":"pageflt/ansible-jailventory","owner":"pageflt","description":"Ansible dynamic inventory provider for FreeBSD jails.","archived":false,"fork":false,"pushed_at":"2018-08-16T22:47:45.000Z","size":4,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-02-13T21:18:34.908Z","etag":null,"topics":["ansible","configuration-management","freebsd","jail"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pageflt.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}},"created_at":"2018-08-16T21:43:17.000Z","updated_at":"2024-02-13T21:18:35.247Z","dependencies_parsed_at":"2023-03-06T12:00:37.625Z","dependency_job_id":null,"html_url":"https://github.com/pageflt/ansible-jailventory","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/pageflt%2Fansible-jailventory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pageflt%2Fansible-jailventory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pageflt%2Fansible-jailventory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pageflt%2Fansible-jailventory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pageflt","download_url":"https://codeload.github.com/pageflt/ansible-jailventory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247636929,"owners_count":20971031,"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","configuration-management","freebsd","jail"],"created_at":"2024-08-01T15:05:12.861Z","updated_at":"2025-04-07T10:32:06.706Z","avatar_url":"https://github.com/pageflt.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# jailventory\n\nAnsible dynamic inventory provider for FreeBSD jails.\n\n## Usage\n\n- Make sure `jailventory.py` is executable:\n\n```\n$ chmod +x jailventory.py\n```\n\n- Add the following directive to your `ansible.cfg`:\n\n```\ninventory = /path/to/jailventory.py\n```\n\n- Ansible should now automatically detect any active jails and add them to the `jails` group:\n\n```\n$ jls\n   JID  IP Address      Hostname                      Path\n    16  192.168.1.1     www                           /home/jails/www\n    17  192.168.1.2     dns                           /home/jails/dns\n$ ansible jails -m ping -o\ndns | SUCCESS =\u003e {\"changed\": false, \"ping\": \"pong\"}\nwww | SUCCESS =\u003e {\"changed\": false, \"ping\": \"pong\"}\n$ sudo service jail start mail\nStarting jails: mail.\n$ jls\n   JID  IP Address      Hostname                      Path\n    16  192.168.1.1     www                           /home/jails/www\n    17  192.168.1.2     dns                           /home/jails/dns\n    18  192.168.1.3     mail                          /home/jails/mail\n$ ansible jails -m ping -o\ndns | SUCCESS =\u003e {\"changed\": false, \"ping\": \"pong\"}\nwww | SUCCESS =\u003e {\"changed\": false, \"ping\": \"pong\"}\nmail | SUCCESS =\u003e {\"changed\": false, \"ping\": \"pong\"}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpageflt%2Fansible-jailventory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpageflt%2Fansible-jailventory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpageflt%2Fansible-jailventory/lists"}