diff --git a/docs/man/man1/ansible-playbook.1 b/docs/man/man1/ansible-playbook.1 index 7ae5308713e..085c5f79f1e 100644 --- a/docs/man/man1/ansible-playbook.1 +++ b/docs/man/man1/ansible-playbook.1 @@ -147,6 +147,11 @@ is mostly useful for crontab or kickstarts\&. .RS 4 Further limits the selected host/group patterns\&. .RE +.PP +\fB\-\-list\-hosts\fR +.RS 4 +Outputs a list of matching hosts; does not execute anything else\&. +.RE .SH "ENVIRONMENT" .sp The following environment variables may be specified\&. diff --git a/docs/man/man1/ansible-playbook.1.asciidoc.in b/docs/man/man1/ansible-playbook.1.asciidoc.in index 40feb781394..e6b6c680a76 100644 --- a/docs/man/man1/ansible-playbook.1.asciidoc.in +++ b/docs/man/man1/ansible-playbook.1.asciidoc.in @@ -124,6 +124,9 @@ and 'local'. 'local' is mostly useful for crontab or kickstarts. Further limits the selected host/group patterns. +*--list-hosts*:: + +Outputs a list of matching hosts; does not execute anything else. ENVIRONMENT ----------- diff --git a/docs/man/man1/ansible.1 b/docs/man/man1/ansible.1 index facc5e75cc7..eb2e8aaeeb2 100644 --- a/docs/man/man1/ansible.1 +++ b/docs/man/man1/ansible.1 @@ -180,6 +180,11 @@ Further limits the selected host/group patterns\&. .RS 4 Further limits hosts with a regex pattern\&. .RE +.PP +\fB\-\-list\-hosts\fR +.RS 4 +Outputs a list of matching hosts; does not execute anything else\&. +.RE .SH "INVENTORY" .sp Ansible stores the hosts it can potentially operate on in an inventory file\&. The syntax is one host per line\&. Groups headers are allowed and are included on their own line, enclosed in square brackets that start the line\&. diff --git a/docs/man/man1/ansible.1.asciidoc.in b/docs/man/man1/ansible.1.asciidoc.in index 3f0e0f0cbfd..5ac1e494043 100644 --- a/docs/man/man1/ansible.1.asciidoc.in +++ b/docs/man/man1/ansible.1.asciidoc.in @@ -122,6 +122,10 @@ Further limits the selected host/group patterns. Further limits hosts with a regex pattern. +*--list-hosts*:: + +Outputs a list of matching hosts; does not execute anything else. + INVENTORY ---------