Skip to content

lemano ansible

Use Ansible inventories and passwords with lemano

Description

The Ansible integration of lemano. It is a program of its own, installed
beside lemano and run as "lemano ansible": lemano itself knows nothing
of Ansible.

Write this program's flags after "ansible": lemano passes on what follows
the name and nothing before it, so "lemano --store FILE ansible ..." does
not reach it. Use the environment instead (LEMANO_STORE).

Exit codes are lemano's: 0 success, 1 other error, 2 usage (also unsafe
tasks a check refused), 7 partial (an import in which a host could not
be imported, a check in which a host could not be compared), 8 with
check --detailed-exitcode, something drifted, missing or forgotten, 130
interrupted.

Synopsis

lemano ansible

Examples

lemano ansible import -i inventories/prod/hosts.yml --out targets/prod.yaml
lemano ansible check site.yml -i inventories/prod/hosts.yml
lemano ansible discover -i inventories/prod/hosts.yml

Exit codes

See exit codes.

See also