Commit Graph

7171 Commits (8a516d14795836a6fc3638354dd6aae3725260e3)
 

Author SHA1 Message Date
James Cammarata 69cfcf7ed0 Minor change to -vvvv mode to only show debugging info for ssh conns
Also added this feature to the CHANGELOG
11 years ago
James Cammarata d5b96abd80 Added support for -vvvv to enable ssh connection debugging
This patch also checks specifically for a return code of 255, which
indicates an unknown SSH error of some kind. When that happens, ansible
will now recommend running with -vvvv (if not enabled) or show the
output from 'ssh -vvv' (when it is enabled)
11 years ago
Nigel Metheringham f0cc2d6efe Added md5 as a jinja filter - returns hex digest of input 11 years ago
Jeremy Price f56b3fba3e dest in s3 module does not work with ~username notation for home directories. Wrapped dest definition in os.path.expanduser() which will return the expanded path in case of successful tilde expansion and otherwise the original value 11 years ago
Thomas Omans 91a4ba2248 allowing a roles to do be made out of dependencies alone 11 years ago
David Stygstra 58620ca477 Add Python 2.4 support to modprobe module 11 years ago
David Stygstra 27a08dc647 Module to manage kernel modules 11 years ago
James Cammarata 503f062521 Merge branch 'ferringb-fixes/configurable-ControlPath' into devel 11 years ago
James Cammarata 848a966736 Adding example section to ansible.cfg for the control_path setting 11 years ago
Lorin Hochstein d4326d8196 htpasswd docs: add notes about depending on python-passlib 11 years ago
Michael DeHaan 20708e31b1 Merge pull request #4133 from skyl/DIST_MODULE_PATH
DEFAULT_MODULE_PATH in setup.py
11 years ago
Michael DeHaan 76fd60dad8 Update CONTRIBUTING.md 11 years ago
David Stygstra 3fdbb56465 Add option for DNS nameservers to quantum_subnet module 11 years ago
James Cammarata aa64aecbed Merge pull request #4157 from yellottyellott/fix_accelerated_typo
Typo fix from `accelerated: true` to `accelerate: true`
11 years ago
Erick Yellott af7b182958 Typo fix from `accelerated: true` to `accelerate: true` 11 years ago
Ralph Bean a9a2a96218 Add a new unique_name param to the digital_ocean module for idempotence.
As it stands now, it is difficult to write idempotent tasks for digital
ocean droplets.  Digital ocean assigns new nodes a random id when they
are provisioned and that id is the only key that can be used to identify
it in subsequent runs of that play.

The workflow previously involved manual intervention:

- write a play defining a new node with no specified id
- run it, collect the randomly assigned id by hand
- modify the play to add the id by hand so future runs don't create
  duplicate nodes
- perform future re-runs that check if the node exists (by its id)
  - if it does exist then do nothing.
  - if it does not exist, then create it and return a *new random id*
  - collect the new random id by hand, modify the playbook file, and
    start all over.

Its a huge pain.

The modifications in this commit allow you to use the 'hostname' as a
primary key for idempotence with digital ocean.  By default, digital
ocean will let you create as many hosts with the same hostname as you
like.  Here, we provide an option to constrain the user to using only
unique hostnames.

The workflow will now look like:

- write a play defining a new node with a specified hostname and
  "unique_name: true""
- run it, create the new node and move on.
- re-run it, notice that a node with that hostname is already created
  and move on.
11 years ago
Ralph Bean 6ecf41530b Fix an example with a yaml syntax error. 11 years ago
Ralph Bean d782d91b80 Fix some "make pep8" errors in the digital_ocean module. 11 years ago
Marcin Płonka d0c78bdc83 using AIX 'csum' command for generating MD5 checksums 11 years ago
Brian Harring 5b1b831cc7 Make ssh's ControlPath configurable via ansible.cfg
This shouldn't generally be needed unless you're working in an environment
that uses rediculously long FQDNs; if the name is too long, you wind up
hitting unix domain socket filepath limits enforced by ssh.
11 years ago
James Cammarata 022918e5af Merge branch 'fix/apt_repository_update_cache' of https://github.com/resmo/ansible into resmo-fix/apt_repository_update_cache 11 years ago
James Cammarata 687753e4cb Fixing up some search/replace errors regarding user/remote_user 11 years ago
René Moser 9fccf96d61 apt_repository: added option update_cache.
The default behavior is to update_cache if changed.

If you add more then one repo, you may not want to update cache for every repo separately.
So you can now disable update_cache with this new option e.g. update_cache=no

Updating cache can also be handled using the apt module.
11 years ago
Michael DeHaan 39659db72a Merge pull request #4148 from ralphbean/digital_ocean_cleanup
Cosmetic - Digital ocean cleanup
11 years ago
Ralph Bean a1ea15141e Remove trailing whitespace in digital ocean module. 11 years ago
Ralph Bean 3eab663f2e Remove duplicate docs in digital ocean module.
The EXAMPLES block here has two copies of the same docs,
one nicely formatted, the other less so.

It looks like a pass was made to clean up the docs but the old
cruftier ones were never removed.
11 years ago
Michael DeHaan 31ec42ef92 Merge pull request #4145 from resmo/fix/zabbix-inventory-stderr
zabbix inventory: print errors to stderr
11 years ago
René Moser a991b62a51 apt_repository: fix update cache after state=changed. Closes GH-4136 11 years ago
René Moser 269ceada78 zabbix inventory: print errors to stderr 11 years ago
Stephen Fromm 27b5c2e28c Fix how module_common handles selevel (issue #4142)
Two fixes:

* parameter name is selevel, not serange.
* Fix split on selinux context to limit to max of 4 since the selevel
  may contain ':' characters.  This was fixed in
  selinux_default_context() and selinux_context().
11 years ago
James Cammarata 671eeb65b2 Merge pull request #4138 from resmo/fix/redundant-fail-json
apt: fixed duplicate fail_json
11 years ago
Rene Moser 9449d62fb2 apt: fixed duplicate fail_json 11 years ago
Skylar Saveland 50bd14faa9 use DEFAULT_MODULE_PATH in setup.py so that there is a chance to override with ANSIBLE_LIBRARY env variable 11 years ago
Michael DeHaan d27f6e037e Merge pull request #4135 from shuhaowu/patch-1
Fixed monit restarted error.
11 years ago
Shuhao Wu 0d2a3f1b0c Fixed monit restarted error.
Errors everytime...
11 years ago
Les Aker 98bf473cb2 fixes for PTY handling 11 years ago
James Cammarata c934d4a383 Added standardized includes to the CHANGELOG 11 years ago
James Cammarata 458f71b53c Merge branch 'issue_4129_role_defaults_empty_yaml' into devel
Conflicts:
	lib/ansible/playbook/play.py
11 years ago
James Cammarata 091a90ee8b Allow includes to follow the standard format
Previously, includes had to receive variables via a special 'vars'
field. With this patch, the include syntax becomes a more natural
datastructure without special fields and is more akin to the way
role includes/dependencies work.

Tested with the following playbook:
---
- hosts: localhost
  connection: local
  tasks:
  - { include: inc1.yml, a: 1 }
  - include: inc2.yml
    b: 2
  - include: inc3.yml
    with_items:
    - x
    - y
    - z

Fixes #3481
11 years ago
Skylar Saveland 8dc31f3093 ANSIBLE_DIST_MODULE_PATH environment variable 11 years ago
James Cammarata c5bb1394b9 Check to make sure default_vars in the datastructure isn't empty
Fixes #4129
11 years ago
Michael DeHaan 4d352e69fc Update CHANGELOG.md 11 years ago
James Cammarata f4c5f37ca6 Merge branch 'issue_3417_systemd_stuff' into devel 11 years ago
James Cammarata 5b15010099 Merge branch 'issue_3312_role_links' into devel 11 years ago
James Cammarata 02033f9ec8 Merge branch 'archlinux-fact' of https://github.com/Schnouki/ansible into Schnouki-archlinux-fact 11 years ago
James Cammarata cc8d601fb6 Updated CHANGELOG for the failed_when feature 11 years ago
James Cammarata 3b801dec72 Merge branch 'failed_when' of https://github.com/hnakamur/ansible into hnakamur-failed_when 11 years ago
James Cammarata 105e2f916e Merge branch 'devel' of https://github.com/r-p-e/ansible into r-p-e-devel 11 years ago
James Cammarata c6fdb85d88 Merge branch 'issue_3421_apt_pkg_iU' into devel 11 years ago
James Cammarata e3bbb92005 Updating CHANGELOG for the recent commits 11 years ago