Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update man pages and the message for an exception. #818

Merged
merged 1 commit into from
Aug 9, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 19 additions & 9 deletions docs/man/man1/ansible-playbook.1.asciidoc.in
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ The names of one or more YAML format files to run as ansible playbooks.
OPTIONS
-------

*-v*, *--verbose*
*-v*, *--verbose*

Verbose mode, more output from successful actions will be shown
Verbose mode, more output from successful actions will be shown.

*-i* 'PATH', *--inventory=*'PATH'::

The 'PATH' to the inventory hosts file, which defaults to '/etc/ansible/hosts'.
The 'PATH' to the inventory hosts file, which defaults to
'/etc/ansible/hosts'.


*-M* 'DIRECTORY', *--module-path=*'DIRECTORY'::
Expand All @@ -58,13 +59,18 @@ Level of parallelism. 'NUM' is specified as an integer, the default is 5.

*-k*, *--ask-pass*::

Prompt for the SSH password instead of assuming key-based authentication with ssh-agent.
Prompt for the SSH password instead of assuming key-based
authentication with ssh-agent.


*-K*, *--ask-sudo-pass*::

Prompt for the password to use for playbook plays that request sudo access, if any
Prompt for the password to use for playbook plays that request sudo
access, if any.

*-U*, 'SUDO_USER', *--sudo-user=*'SUDO_USER'::

Desired sudo user (default=root).

*-T* 'SECONDS', *--timeout=*'SECONDS'::

Expand All @@ -78,7 +84,14 @@ Force all plays to use sudo, even if not marked as such.

*-u* 'USERNAME', *--remote-user=*'USERNAME'::

Use this remote user name on playbook steps that do not indicate a user name to run as.
Use this remote user name on playbook steps that do not indicate a
user name to run as.

*-c* 'CONNECTION', *--connection=*'CONNECTION'::

Connection type to use. Possible options are 'paramiko' (SSH), 'ssh',
and 'local'. 'local' is mostly useful for crontab or kickstarts.



ENVIRONMENT
Expand Down Expand Up @@ -113,6 +126,3 @@ SEE ALSO

Extensive documentation as well as IRC and mailing list info
is available on the ansible home page: <https://ansible.github.com/>



11 changes: 9 additions & 2 deletions docs/man/man1/ansible.1.asciidoc.in
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ The 'PATH' to the inventory hosts file, which defaults to '/etc/ansible/hosts'.

Level of parallelism. 'NUM' is specified as an integer, the default is 5.

*--private-key=*'PRIVATE_KEY_FILE'::

Use this file to authenticate the connection.


*-m* 'NAME', *--module-name=*'NAME'::

Expand Down Expand Up @@ -100,10 +104,13 @@ Use this remote 'USERNAME' instead of root.

Sudo to 'SUDO_USERNAME' instead of root. Implies --sudo.

*--private-key=*'PRIVATE_KEY_FILE'::
Use this file to authenticate the connection.

*-c* 'CONNECTION', *--connection=*'CONNECTION'::

Connection type to use. Possible options are 'paramiko' (SSH) and 'local'.
Local is mostly useful for crontab or kickstarts.
Connection type to use. Possible options are 'paramiko' (SSH), 'ssh',
and 'local'. 'local' is mostly useful for crontab or kickstarts.


INVENTORY
Expand Down
2 changes: 1 addition & 1 deletion lib/ansible/runner/connection/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def exec_command(self, cmd, tmp_path, sudo_user, sudoable=False):
# NOTE: if someone wants to add sudo w/ password to the local connection type, they are welcome
# to do so. The primary usage of the local connection is for crontab and kickstart usage however
# so this doesn't seem to be a huge priority
raise errors.AnsibleError("sudo with password is presently only supported on the paramiko (SSH) connection type")
raise errors.AnsibleError("sudo with password is presently only supported on the 'paramiko' (SSH) and native 'ssh' connection types")
cmd = "sudo -u {0} -s {1}".format(sudo_user, cmd)

vvv("EXEC %s" % cmd, host=self.host)
Expand Down