From 1bf8f78b188de69cc7051fc8e609138220875931 Mon Sep 17 00:00:00 2001 From: Chris AtLee Date: Fri, 27 Feb 2015 08:38:45 -0500 Subject: [PATCH] Add --list-hosts to man pages. Fixes #9574 --- docs/man/man1/ansible-playbook.1 | 5 +++++ docs/man/man1/ansible-playbook.1.asciidoc.in | 3 +++ docs/man/man1/ansible.1 | 5 +++++ docs/man/man1/ansible.1.asciidoc.in | 4 ++++ 4 files changed, 17 insertions(+) diff --git a/docs/man/man1/ansible-playbook.1 b/docs/man/man1/ansible-playbook.1 index 7ae5308713..085c5f79f1 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 40feb78139..e6b6c680a7 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 facc5e75cc..eb2e8aaeeb 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 3f0e0f0cbf..5ac1e49404 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 ---------