Commit Graph

1525 Commits (db618f837fa2e8e6b0d23d3b0c42bbbfc4d3e7cf)

Author SHA1 Message Date
Michael DeHaan d1d3f4b4d2 Merge pull request #2842 from bcoca/cleanup
generalized cleanup and removed atomic_move return
12 years ago
Brian Coca 3ac6c45499 generalized cleanup function, in case modules want to use
removed return code as it doesn't make sense anymore
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
12 years ago
Michael DeHaan f87ac5ce29 Merge pull request #2841 from jimi1283/issue_2820
BUGFIX - --start-at-task= works only with --step
12 years ago
Michael DeHaan 9ed177e25e Merge pull request #2840 from toshywoshy/devel
Patch so that delegate_to also uses ansible_ssh_private_key_file
12 years ago
James Cammarata 2440861b1b BUGFIX - --start-at-task= works only with --step
From issue #2820, --start-at-task does not actually run tasks
unless --step is specified. This appears to be because skip_task
is being evaluated as True in PlayBook._run_task(). This patch
ensures skip_task is set to False in the callback.
12 years ago
Toshaan Bharvani 62b53f4d2c changed the delegate_to to also use ansible_ssh_private_key_file from the inventory file 12 years ago
Gilles Cornu 68f7ea6099 Apply Gilles's patch to atomic_move based on github comment. (Email address not supplied
since wasn't from a pull request)
12 years ago
Brian Coca bdeb370d79 fixed case in which move fails after remote user copies file and sudo to non root does the move
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
12 years ago
Michael DeHaan c3547a2308 Moar SELinux. 12 years ago
Michael DeHaan fb7bfa61a9 Fix SELinux context on atomic_move 12 years ago
Michael DeHaan 4ecc7ea2e0 Merge pull request #2817 from sfromm/issue2810
Set selinux context on file after shutil.move in atomic_move()
12 years ago
Serge van Ginderachter 53a7ab74c8 use os.path.join instead of hardcoded unix separator in first_found lookup plugin 12 years ago
Stephen Fromm 50e94e4a2f Set selinux context on file after shutil.move in atomic_move()
This is intended to fix #2810.  It sets the context of the tmp_dest file
after shutil.move() operation and before os.rename().  This should
retain the selinux context of the file across moves.
12 years ago
Michael DeHaan 7117ca5395 Allow modules in a "./library" directory to be referenced by their shortforms "modulename:" instead of just "action: modulename" 12 years ago
Michael DeHaan e90023281d Slightly refine log output to include username in addition to pid. 12 years ago
Michael DeHaan ba8f2fca26 Merge branch 'add_pid_to_logging' of git://github.com/mcodd/ansible into devel 12 years ago
Stoned Elipot df3c4849e9 Also load Jinja2 extensions when processing template from string 12 years ago
Michael DeHaan 4bea9a612f Don't use "finally" here as it's not 2.4 compliant. 12 years ago
Michael DeHaan 68f711d5ae teach plugin loader to find modules in subdirectories 12 years ago
Michael DeHaan 391fb98ee2 Allow modules to be categorized, and also sort them when generating the documentation. 12 years ago
Michael DeHaan a81089231e Register skipped tasks so we can at least check their changed/not-changed status. 12 years ago
Kahlil (Kal) Hodgson 9f90f0e856 fix arguments to isinstance() in env lookup 12 years ago
Matt Coddington 3b8f69bac8 add pid to log 12 years ago
Stoned Elipot 75b51f79b4 Add module path library/ if it exists in role directory 12 years ago
Michael DeHaan 75cf5c985b Allow playbook tags to be comma seperated strings as well as lists 12 years ago
Michael DeHaan bcac289667 Cows don't need to display brackets around strings. 12 years ago
Michael DeHaan 016b04dff1 Merge branch 'roles_dir_search_order' of git://github.com/mcodd/ansible into devel 12 years ago
Brian Coca caf6bd6ce5 Changed atomic_replace to atomic_move, now ti DOES move atomically in the last
step
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
12 years ago
Michael DeHaan b8fdcff524 Merge branch 'nocows' of git://github.com/jpmens/ansible into devel
Conflicts:
	lib/ansible/callbacks.py
	lib/ansible/constants.py
12 years ago
Michael DeHaan 553751aee1 Merge branch 'numeric_ids_refactor' of git://github.com/insom/ansible into testing_427 12 years ago
Michael DeHaan aa55268514 Adds a logfile for ansible playbooks that can be set by the environment or configuration file. 12 years ago
Michael DeHaan 515fbd5a17 Restructure output to prevent rare cases of interlaced I/O in multiprocessing paths. 12 years ago
Matt Coddington c164609dd6 typo fix 12 years ago
Matt Coddington c83c534a7d Search for roles in the roles subdir first. Throw an error when no role .yml files are found. 12 years ago
Michael DeHaan 5af271911b Fix duplicate handler notification issue in 1.2 devel 12 years ago
Michael DeHaan 224e20ca60 complex_arg templating should be smarter. Make it so! 12 years ago
Aaron Brady bd226eb826 Refactor user_and_group so it works off of numbers
There are various cases where a UID to username to UID mapping breaks
down. One UID can be used by two usernames, or no username. If we
always use UIDs internally, then these ambiguous cases won't be a
problem.
12 years ago
Aaron Brady d2e457f81f Accept numeric user and group parameters 12 years ago
Jeroen Hoekx ac7a632711 Remove leftover debug statement in template code. 12 years ago
Michael DeHaan 21fe750cef Flush handlers before pre and post task sections change, but not between task and roles, as this seems
to be confusing to people (and not usually neccessary)
12 years ago
Michael DeHaan 6fdfbb1a34 Improve variable smushing so it only has to be done in one place. This is related to shlex.split being called
on untemplated variables in some rare cases.
12 years ago
Michael DeHaan af2fb56a10 Changes to allow WANT_JSON to allow JSON to non-Python modules 12 years ago
Stephen Fromm 189b210f5a Catch exception when logging to systemd journal fails
systemd journal will throw IOError exception when journal.sendv() fails.
This catches that and falls back to syslog.  See issue #2773.
12 years ago
Jan-Piet Mens dfd885a012 Make ANSIBLE_NOCOWS configurable
nocows = 1 in ansible.cfg
	or old environment variable ANSIBLE_NOCOWS=1
add to ansible.cfg example
12 years ago
Michael DeHaan bd0c22868e With fileglob should return full paths as in 1.1 12 years ago
Michael DeHaan 35e61d8f16 Merge pull request #2688 from dagwieers/module-global
New module 'set_fact' to define host facts
12 years ago
Michael DeHaan be947e5266 Resolve merge conflict 12 years ago
Michael DeHaan 9871707998 If sudoing and the sudo user is not root, the original file is saved as you, therefore delete that file as you. 12 years ago
Michael DeHaan e12f91799c Allow args: var to be used to pass a variable in bare, and also templated versions should also DWIM. 12 years ago
Michael DeHaan 6c778acd91 Smush the braces in various places (hey, that rhymes) to avoid undo key=value splitting surprises
in new template system.
12 years ago