{"id":15050039,"url":"https://github.com/lvillani/ansible-tools","last_synced_at":"2025-04-10T02:13:33.279Z","repository":{"id":31422013,"uuid":"34985471","full_name":"lvillani/ansible-tools","owner":"lvillani","description":"Keyring integration and local execution wrappers for Ansible","archived":false,"fork":false,"pushed_at":"2025-02-26T13:54:03.000Z","size":59,"stargazers_count":18,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T03:43:58.086Z","etag":null,"topics":["ansible"],"latest_commit_sha":null,"homepage":"","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/lvillani.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":"2015-05-03T12:36:10.000Z","updated_at":"2025-02-26T13:54:00.000Z","dependencies_parsed_at":"2025-02-21T18:22:09.402Z","dependency_job_id":"161fec10-2fe8-4b0d-b6c2-37ad425a7dec","html_url":"https://github.com/lvillani/ansible-tools","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvillani%2Fansible-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvillani%2Fansible-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvillani%2Fansible-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvillani%2Fansible-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lvillani","download_url":"https://codeload.github.com/lvillani/ansible-tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247785943,"owners_count":20995644,"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"],"created_at":"2024-09-24T21:24:25.868Z","updated_at":"2025-04-10T02:13:33.253Z","avatar_url":"https://github.com/lvillani.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansible-tools\n\n[![PyPI Version](https://img.shields.io/pypi/v/ansible-tools.svg)](https://pypi.python.org/pypi/ansible-tools)\n[![PyPI Downloads](https://img.shields.io/pypi/dm/ansible-tools.svg)](https://pypi.python.org/pypi/ansible-tools)\n[![MIT License](https://img.shields.io/badge/license-mit-blue.svg)](https://choosealicense.com/licenses/mit/)\n\nThis is a set of wrappers around the `ansible`, `ansible-playbook` and `ansible-vault` commands\nwhich integrate with the system keyring to retrieve the vault password.\n\nIt should work on both Linux and macOS.\n\n# Installation\n\n* On macOS, with Homebrew: `brew install lvillani/tap/ansible-tools`;\n* With Pip: `pip install --user ansible-tools`;\n\nIt is best, however, to install `ansible-tools` in a Virtualenv, along with the version of Ansible\nyou are using.\n\n# Overview\n\n- `ansible-vault-helper`: Used by users to setup keyring integration, called by Ansible to obtain a\n  Vault unlock password.\n- `vaultify`: Wraps Ansible commands such as `ansible`, `ansible-playbook` and `ansible-playbook` so\n  that the Vault is automatically unlocked with the password stored in the system's keyring.\n- `ansible-local`: Wrapper to run Ansible locally.\n- `ansible-mkpasswd`: Generates an encrypted password that can be used with the user module (see also\n  [here](https://docs.ansible.com/ansible/latest/reference_appendices/faq.html#how-do-i-generate-encrypted-passwords-for-the-user-module))\n\n# Usage\n\nGo to the same directory that contains your playbooks and then run:\n\n    ansible-vault-helper --update\n\nYou will be prompted for a vault name (which can be anything) and the unlock password. The former is\nstored in `ansible.cfg` alongside your playbooks, the latter is securely stored in your keyring.\n\nAt this point you can run Ansible as usual but precede the command with `vaultify`. That is, to\nstart a playbook run:\n\n    vaultify ansible-playbook site.yml\n\nWe also ship a tool to easily apply a playbook on the current system called `ansible-local` which is\ncomposable with `vaultify`.\n\n# Aliases\n\nHere's a list of handy shell aliases to make your life easier. They were tested on fish but should\nwork also on Bash and Zsh:\n\n    alias v=\"vaultify\"\n    alias ansible=\"vaultify ansible\"\n    alias ansible-playbook=\"vaultify ansible-playbook\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvillani%2Fansible-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flvillani%2Fansible-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvillani%2Fansible-tools/lists"}