{"id":17952232,"url":"https://github.com/wilfriedroset/consul-awx","last_synced_at":"2025-03-25T00:31:40.147Z","repository":{"id":43743677,"uuid":"251026498","full_name":"wilfriedroset/consul-awx","owner":"wilfriedroset","description":"Inventory script for AWX with Consul as datasource","archived":false,"fork":false,"pushed_at":"2025-01-13T19:21:16.000Z","size":93,"stargazers_count":11,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-19T05:42:33.800Z","etag":null,"topics":["ansible","ansible-inventory-script","awx","consul"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wilfriedroset.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2020-03-29T12:27:45.000Z","updated_at":"2025-01-13T19:21:13.000Z","dependencies_parsed_at":"2024-10-29T10:29:43.932Z","dependency_job_id":null,"html_url":"https://github.com/wilfriedroset/consul-awx","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/wilfriedroset%2Fconsul-awx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilfriedroset%2Fconsul-awx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilfriedroset%2Fconsul-awx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilfriedroset%2Fconsul-awx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wilfriedroset","download_url":"https://codeload.github.com/wilfriedroset/consul-awx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245377920,"owners_count":20605374,"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","ansible-inventory-script","awx","consul"],"created_at":"2024-10-29T09:56:02.595Z","updated_at":"2025-03-25T00:31:39.829Z","avatar_url":"https://github.com/wilfriedroset.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Consul inventory source for AWX/Tower\n[![Build Status](https://travis-ci.org/wilfriedroset/consul-awx.svg?branch=master)](https://travis-ci.org/wilfriedroset/consul-awx)\n\nAims to provide an inventory script for\n[AWX/Tower](https://docs.ansible.com/ansible-tower/latest/html/userguide/inventories.html)\nas first target but also usable by vanilla Ansible with Consul catalog as data\nsource.\n\nStandalone Ansible inventory scripts can rely on INI configuration file where\nAWX/Tower rely only on environment variables. All data are pulled from the catalog\nAPI.\n\n## Usage\n\n### AWX\nSimply add this script as inventory within AWX/Tower following the [official\ndocumentation](https://docs.ansible.com/ansible-tower/latest/html/userguide/inventories.html).\n\n### Standalone Ansible\nFollowing [Working with dynamic inventory](https://docs.ansible.com/ansible/latest/user_guide/intro_dynamic_inventory.html) documentation, the simplest method to use this script as inventory is the implicit method:\n\n```\nwget https://raw.githubusercontent.com/wilfriedroset/consul-awx/master/consul_awx.py -o /etc/ansible/hosts\nchmod +x /etc/ansible/hosts\n# Configure it\ncat \u003c\u003c EOF \u003e /etc/ansible/consul_awx.ini\n[consul]\nhost: 127.0.0.1\nport: 8500\nscheme: http\nverify: true\nEOF\n# Test it\n/etc/ansible/hosts --list\n```\n\n## Credits\n\nThis script was mostly inspired by [consul_io.py](https://github.com/ansible/ansible/tree/devel/contrib/inventory)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilfriedroset%2Fconsul-awx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilfriedroset%2Fconsul-awx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilfriedroset%2Fconsul-awx/lists"}