O_Athens
O_Athens

Reputation: 31

Ansible command line limit parameter

While calling Ansible playbook through command line what do following command outer:local:dns will search for or will perform ?

ansible-playbook --limit outer:local:dns

Upvotes: 1

Views: 2389

Answers (2)

SmartTom
SmartTom

Reputation: 821

The command outer:local:dns is a pattern referring to multiple groups in the inventory.
Coupling this pattern with --limit means that the playbook will be executed for the group outer, the group local and the group dns.

For more information about ansible pattern, see this documentation.

Upvotes: 2

vkozyrev
vkozyrev

Reputation: 1978

I guess that you could just google it. The value that is passed to --limit is the hostname(s) or host group(s) that an Ansible playbook will be applied to. You can read more about the pattern syntax here.

Upvotes: 0

Related Questions