ansible-find

command module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 2 Imported by: 0

README

ansible-find

A CLI tool to find where ansible variables are defined.

Install

go install github.com/jonasbleyl/ansible-find@latest

Usage

A CLI tool to find where ansible variables are defined.

This tool will only search YAML files that reside within the
following directories: [group_vars, host_vars, defaults, vars]

Usage:
  ansible-find VARIABLE [DIRECTORY] [flags]

Flags:
  -l, --files-with-matches   only print the filenames of matching files
  -h, --help                 help for ansible-find
  -r, --regex                use regex to search for variables
  -v, --vault string         ansible vault password file (default ".vault")
Example
$ ansible-find foo_bar 

group_vars/vault.yaml
foo_bar: []

roles/foo/defaults/main.yml
foo_bar:
  - 1
  - 2

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
cli
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL