You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Go to file
Lorin Hochstein 8c9cceacbf authorized_key: Set manage_dir default value
This commit fixes a bug where the authorized_key module causes
the ~user/.ssh directory to be owned by root instead of the user,
when the manage_dir argument is not specified.

If the manage_dir argument was not specified, the module behaved as if
manage_dir was set to false, even though it's supposed to default to
true.

This module assumed that an optional argument, with no default
specified, will not be present in the module.params dictionary.

What actually seems to happen is that the argument does appear in
the module.params dictionary with a value of None.

The upside is that this line was evaluating to None instead of
true:

    manage_dir = params.get("manage_dir", True)

I fixed the problem in this particular module by explicitly specifying
the default value for the manage_dir arugment. But if this bug
occurred because of a change in behavior in AnsibleModule, then other
modules may be broken as well.
12 years ago
bin Fix empty requirements specifications in modules documentation 12 years ago
docs/man Manpage tweaks, docs rebuild 12 years ago
docsite Add AWS doc to table of contents. 12 years ago
examples Add version added field to notification modules. 12 years ago
hacking Fixup the module formatter to explain the EXAMPLES string as well. 12 years ago
lib/ansible Fix copy when force=no and update _remote_md5 docs. 12 years ago
library authorized_key: Set manage_dir default value 12 years ago
packaging Not sure why RPM was trying to avoid certain files starting with f. Change that. 12 years ago
plugins This plugin is not quite ready as it needs to support --host <hostname> and --list, like the other inventory plugins, but we should get this tweaked and include it once it is standardized. Watch this space! 12 years ago
test Plug-ins loaded from top-level plug-in directory 12 years ago
.gitignore Ignore Intellij IML files. 12 years ago
CHANGELOG.md Fix tabs and spaces in OpenStack modules. 12 years ago
CONTRIBUTING.md Add a line about testing. 12 years ago
COPYING license file should be in source tree 13 years ago
MANIFEST.in Add some docs/examples 12 years ago
Makefile Not sure why RPM was trying to avoid certain files starting with f. Change that. 12 years ago
README.md Update README.md 12 years ago
RELEASES.txt Update the release date & code names in the releases file. 12 years ago
VERSION Update release version. 12 years ago
setup.py fix package mentioned twice in setup.py 12 years ago

README.md

Ansible

Ansible is a radically simple configuration-management, deployment, task-execution, and multinode orchestration framework.

Read the documentation and more at http://ansible.cc

Many users run straight from the development branch (it's generally fine to do so), but you might also wish to consume a release. You can find instructions on http://ansible.cc/docs/gettingstarted.html for a variety of platforms. If you want a tarball of the last release, go to http://ansible.cc/releases/ and you can also install with pip (though that will bring in some optional binary dependencies you normally do not need).

Design Principles

  • Dead simple setup
  • Super fast & parallel by default
  • No server or client daemons; use existing SSHd
  • No additional software required on client boxes
  • Modules can be written in ANY language
  • Awesome API for creating very powerful distributed scripts
  • Be usable as non-root
  • The easiest config management system to use, ever.

Get Involved

Branch Info

  • Releases are named after Van Halen songs.
  • The devel branch corresponds to the release actively under development.
  • Various release-X.Y branches exist for previous releases
  • We'd love to have your contributions, read "CONTRIBUTING.md" for process notes.

Author

Michael DeHaan -- michael@ansibleworks.com

AnsibleWorks