ansible command

The command-line tool that runs a single module against a host pattern, used for ad hoc commands and quick checks.

In more detail

Its shape is ansible <pattern> -m <module> -a "<arguments>". Run with --version it prints the ansible-core version and the Python it uses, and with --list-hosts it shows which hosts a pattern selects without contacting any of them.

Example

ansible all -m ansible.builtin.ping

Related terms

Taught in

References

Certification courses