diff --git a/Makefile b/Makefile index 188d6e54157..45997033b44 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,7 @@ clean: find . -type f \( -name "*~" -or -name "#*" \) -delete find . -type f \( -name "*.swp" \) -delete @echo "Cleaning up asciidoc to man transformations and results" - find ./docs/man -type f \( -name "*.xml" -or -regex ".*\.[0-9]$$" \) -delete + find ./docs/man -type f -name "*.xml" -delete @echo "Cleaning up output from test runs" -rm -rf test/test_data @echo "Cleaning up RPM building stuff" diff --git a/ansible.spec b/ansible.spec index 923f3b95056..bbe9c8cd3d1 100644 --- a/ansible.spec +++ b/ansible.spec @@ -29,7 +29,6 @@ can serve as a configuration management or deployment system. %build python setup.py build -make docs %install python setup.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES @@ -50,6 +49,7 @@ rm -rf $RPM_BUILD_ROOT %{python_sitelib}/* %{_bindir}/ansible* %{_datadir}/ansible/* +%config(noreplace) /etc/ansible/hosts %config(noreplace) %{_sysconfdir}/ansible/ diff --git a/docs/man/man1/ansible-playbook.1 b/docs/man/man1/ansible-playbook.1 new file mode 100644 index 00000000000..5d7160d57e0 --- /dev/null +++ b/docs/man/man1/ansible-playbook.1 @@ -0,0 +1,80 @@ +'\" t +.\" Title: ansible-playbook +.\" Author: [see the "AUTHOR" section] +.\" Generator: DocBook XSL Stylesheets v1.75.2 +.\" Date: 03/31/2012 +.\" Manual: System administration commands +.\" Source: Ansible 0.0.1 +.\" Language: English +.\" +.TH "ANSIBLE\-PLAYBOOK" "1" "03/31/2012" "Ansible 0\&.0\&.1" "System administration commands" +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +ansible-playbook \- run an ansible playbook +.SH "SYNOPSIS" +.sp +ansible\-playbook \&... [options] +.SH "DESCRIPTION" +.sp +\fBAnsible playbooks\fR are a configuration and multinode deployment system\&. Ansible\-playbook is the tool used to run them\&. See the project home page (link below) for more information\&. +.SH "ARGUMENTS" +.PP +\fBfilename\&.yml\fR +.RS 4 +The names of one or more YAML format files to run as ansible playbooks\&. +.RE +.SH "OPTIONS" +.PP +\fB\-i\fR, \fB\-\-inventory\fR +.RS 4 +Path to the inventory hosts file, which defaults to /etc/ansible/hosts\&. +.RE +.PP +\fB\-M\fR, \fB\-\-module\-path\fR +.RS 4 +Where to load modules from\&. The default is /usr/share/ansible +.RE +.PP +\fB\-f\fR, \fB\-\-forks\fR +.RS 4 +Desired level of parallelism\&. Default 5\&. +.RE +.PP +\fB\-k\fR, \fB\-\-ask\-pass\fR +.RS 4 +Prompt for the SSH password instead of assuming key\-based authentication with ssh\-agent\&. +.RE +.PP +\fB\-T\fR, \fB\-\-timeout\fR +.RS 4 +Connection timeout to use when trying to talk to hosts, in seconds\&. +.RE +.SH "ENVIRONMENT" +.sp +The following environment variables may specified\&. +.sp +ANSIBLE_HOSTS \(em Override the default ansible hosts file +.sp +ANSIBLE_LIBRARY \(em Override the default ansible module library path +.SH "AUTHOR" +.sp +Ansible was originally written by Michael DeHaan\&. See the AUTHORS file for a complete list of contributors\&. +.SH "COPYRIGHT" +.sp +Copyright \(co 2012, Michael DeHaan +.sp +Ansible is released under the terms of the GPLv3 License\&. +.SH "SEE ALSO" +.sp +\fBansible\fR(1) +.sp +Extensive documentation as well as IRC and mailing list info is available on the ansible home page: https://ansible\&.github\&.com/ diff --git a/docs/man/man1/ansible.1 b/docs/man/man1/ansible.1 new file mode 100644 index 00000000000..abeaabe4b55 --- /dev/null +++ b/docs/man/man1/ansible.1 @@ -0,0 +1,123 @@ +'\" t +.\" Title: ansible +.\" Author: [see the "AUTHOR" section] +.\" Generator: DocBook XSL Stylesheets v1.75.2 +.\" Date: 03/31/2012 +.\" Manual: System administration commands +.\" Source: Ansible 0.0.1 +.\" Language: English +.\" +.TH "ANSIBLE" "1" "03/31/2012" "Ansible 0\&.0\&.1" "System administration commands" +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +ansible \- run a command somewhere else +.SH "SYNOPSIS" +.sp +ansible [\-f forks] [\-m module_name] [\-a args] +.SH "DESCRIPTION" +.sp +\fBAnsible\fR is an extra\-simple tool/framework/API for doing \'remote things\' over SSH\&. +.SH "ARGUMENTS" +.PP +\fBhost\-pattern\fR +.RS 4 +A name of a group in the inventory file, a shell\-like glob selecting hosts in inventory file, or any combination of the two seperated by semicolons\&. +.RE +.SH "OPTIONS" +.PP +\fB\-i\fR, \fB\-\-inventory\fR +.RS 4 +Path to the inventory hosts file, which defaults to /etc/ansible/hosts\&. +.RE +.PP +\fB\-f\fR, \fB\-\-forks\fR +.RS 4 +Level of parallelism\&. Specify as an integer, the default is 5\&. +.RE +.PP +\fB\-m\fR, \fB\-\-module\-name\fR +.RS 4 +Module name to execute\&. +.RE +.PP +\fB\-M\fR, \fB\-\-module\-path\fR +.RS 4 +Where to load modules from\&. The default is /usr/share/ansible +.RE +.PP +\fB\-a\fR, \fB\-\-args\fR +.RS 4 +Arguments to pass to the module +.RE +.PP +\fB\-k\fR, \fB\-\-ask\-pass\fR +.RS 4 +Prompt for the SSH password instead of assuming key\-based authentication with ssh\-agent\&. +.RE +.PP +\fB\-o\fR, \fB\-\-one\-line\fR +.RS 4 +Try to output everything on one line\&. +.RE +.PP +\fB\-t\fR, \fB\-\-tree\fR +.RS 4 +Save contents in this output directory, with the results named in a file named after each host\&. +.RE +.PP +\fB\-T\fR, \fB\-\-timeout\fR +.RS 4 +Connection timeout to use when trying to talk to hosts, in seconds\&. +.RE +.PP +\fB\-B\fR, \fB\-\-background\fR +.RS 4 +Runs commands in the background, killing the task after N seconds\&. +.RE +.PP +\fB\-P\fR, \fB\-\-poll\fR +.RS 4 +Poll a background job every (this many) seconds\&. Requires \-B\&. +.RE +.PP +\fB\-u\fR, \fB\-\-remote\-user\fR +.RS 4 +Use this remote username instead of root +.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\&. +.SH "FILES" +.sp +/etc/ansible/hosts \(em Default inventory file +.sp +/usr/share/ansible/ \(em Default module library +.SH "ENVIRONMENT" +.sp +The following environment variables may specified\&. +.sp +ANSIBLE_HOSTS \(em Override the default ansible hosts file +.sp +ANSIBLE_LIBRARY \(em Override the default ansible module library path +.SH "AUTHOR" +.sp +Ansible was originally written by Michael DeHaan\&. See the AUTHORS file for a complete list of contributors\&. +.SH "COPYRIGHT" +.sp +Copyright \(co 2012, Michael DeHaan +.sp +Ansible is released under the terms of the GPLv3 License\&. +.SH "SEE ALSO" +.sp +\fBansible\-playbook\fR(1) +.sp +Extensive documentation as well as IRC and mailing list info is available on the ansible home page: https://ansible\&.github\&.com/