{"id":18437095,"url":"https://github.com/mfussenegger/nvim-ansible","last_synced_at":"2025-08-20T16:32:59.536Z","repository":{"id":137714222,"uuid":"569412825","full_name":"mfussenegger/nvim-ansible","owner":"mfussenegger","description":"Small neovim plugin to make working with Ansible playbooks or roles more convenient","archived":false,"fork":false,"pushed_at":"2024-10-17T08:38:10.000Z","size":13,"stargazers_count":47,"open_issues_count":1,"forks_count":10,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-12-03T15:45:48.474Z","etag":null,"topics":["ansible","neovim","neovim-plugin"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mfussenegger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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},"funding":{"github":["mfussenegger"]}},"created_at":"2022-11-22T19:13:11.000Z","updated_at":"2024-11-18T19:31:21.000Z","dependencies_parsed_at":"2024-12-03T15:49:05.186Z","dependency_job_id":null,"html_url":"https://github.com/mfussenegger/nvim-ansible","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"nvim-lua/nvim-lua-plugin-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfussenegger%2Fnvim-ansible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfussenegger%2Fnvim-ansible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfussenegger%2Fnvim-ansible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfussenegger%2Fnvim-ansible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mfussenegger","download_url":"https://codeload.github.com/mfussenegger/nvim-ansible/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230438185,"owners_count":18225870,"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","neovim","neovim-plugin"],"created_at":"2024-11-06T06:13:39.985Z","updated_at":"2024-12-19T13:08:35.969Z","avatar_url":"https://github.com/mfussenegger.png","language":"Lua","funding_links":["https://github.com/sponsors/mfussenegger"],"categories":[],"sub_categories":[],"readme":"# nvim-ansible\n\n## Installation\n\n```bash\ngit clone \\\n    https://github.com/mfussenegger/nvim-ansible.git \\\n    ~/.config/nvim/pack/plugins/start/nvim-ansible\n```\n\n## Usage\n\nSmall plugin to make working with Ansible playbooks or roles more convenient:\n\n- Adds `ftdetect` pattern to recognize playbooks/roles and set `filetype` to `yaml.ansible`.\n- Sets `keywordprg` to `ansible-doc` if available\n- Sets `path` to be able to jump to files using `gf` which are `files/` next to a `tasks/` role file.\n- Provides a `run()` function to execute playbooks or roles using `ansible-playbook` or `ansible localhost -m import_role`. See `:help ansible`\n\n\nYou may want to setup keymaps for the `run()` function, for example in `ftplugin/ansible.lua` add:\n\n```lua\nvim.keymap.set('v', '\u003cleader\u003ete', function() require('ansible').run() end, { buffer = true, silent = true })\nvim.keymap.set('n', '\u003cleader\u003ete', \":w\u003cCR\u003e :lua require('ansible').run()\u003cCR\u003e\", { buffer = true, silent = true })\n```\n\n\nBest used together with [ansible-language-server](https://github.com/ansible/ansible-language-server)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfussenegger%2Fnvim-ansible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfussenegger%2Fnvim-ansible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfussenegger%2Fnvim-ansible/lists"}