Commit Graph

147 Commits (560b1af96d580659cc47ceadd0a74c9b99146483)

Author SHA1 Message Date
Charles Paul 6680cc7052 allow custom callbacks with adhoc cli for scripting
missing import of CallbackBase
10 years ago
Brian Coca 04d74fd680 reenabled --tree for ansible adhoc command
previous fix to avoid callbacks now conflicted with tree optoin
which is implemented as a callback in 2.0
10 years ago
Brian Coca 7936a4687e adhoc avoids callbacks by default as it did before
Previous emptying of whitelist only affected callbacks that were
constructed for need whitelist. This now works for all callbacks.
10 years ago
James Cammarata a183972477 Don't use play vars in HostVars
Fixes #13398
10 years ago
Yannig Perré 5227c6bb52 Do not copy variable_manager each time. Instead, keep host and local variable_manager sync.
Fix https://github.com/ansible/ansible/issues/13221
10 years ago
James Cammarata 9f31c073fe Fixing a few bugs in the HostVars performance areas
* Also refresh inventory in the HostVars manager process when things
  are changed via add_host/group_by
* Raise j2undefined rather than return it
10 years ago
James Cammarata 5cbeab5a3c Performance improvements for HostVars and some bugfixes 10 years ago
Toshio Kuratomi 62979efa14 Finish up plugin porting to global display
Also remove display = display which does nothing
10 years ago
Toshio Kuratomi 318bfbb207 Migrate cli and dependencies to use global display 10 years ago
Toshio Kuratomi 4737305837 Remove dead code as this was moved to another class 10 years ago
James Cammarata 59b67a2f68 Reset workers list when recreating processes
Also renames some things to be more accurate
10 years ago
Brian Coca 9c24f88eca updated forks comment 10 years ago
James Cammarata 1027abd596 Cleaning up bugs related to perf improvement changes 10 years ago
James Cammarata 63c47fb271 Fixing up performance 10 years ago
Brian Coca f4912dd88a added callback fallback to v1 methods for backwards compat with existing callbacks 10 years ago
Brian Coca e2c56efca6 Merge pull request #12867 from bcoca/callback_whitelist_tweak
make callbacks declare needing whitelisting
10 years ago
Brian Coca 931eb16e55 clearer selection of min value
cleanup workers at each run to avoid stragglers
10 years ago
Brian Coca b44f1428d0 use minimal number of forks taking serial, forks and play patterns into account 10 years ago
Brian Coca 3c35655b52 removed serial as it is not avialable for fork control
fixes #13037
10 years ago
Brian Coca 0abeff4511 better limiting of forks to lowest actual restriction 10 years ago
Lars Larsson 3289670a04 treat forks config parameter as max value instead of always creating that number of workers 10 years ago
Brian Coca 5017a96948 Revert "make callbacks declare needing whitelisting"
another premature merge
This reverts commit df8ff85787.
10 years ago
Brian Coca df8ff85787 make callbacks declare needing whitelisting
this will allow for custom or v1 callbacks locally loaded to automatically be triggered as they were in 1.x
10 years ago
Brian Coca c267c23020 make callbacks declare needing whitelisting
this will allow for custom or v1 callbacks locally loaded to automatically be triggered as they were in 1.x
10 years ago
James Cammarata deff045aa9 Fix bug caused by options not having start_at_task when used through adhoc
Fixes #12590
10 years ago
James Cammarata dcb8caf9e8 Remember if we already skipped tasks via --start-at-task
Fixes #12482
10 years ago
James Cammarata be7bd392cb Fix unreachable host detection and have plays continue after unreachable failures
Fixes #12284
10 years ago
James Cammarata 4ac2bafc4b Set hosts fact gathering flag based on fact cache entries
Fixes #12213
10 years ago
James Cammarata 9e1bc434c7 Further cleanup from locking changes 10 years ago
James Cammarata b93f27e260 Move the lockfile back to tqm to make sure it stays unique 10 years ago
James Cammarata 50448d68e1 Implement max_fail_percentage and any_errors_fatal support
Fixes #11997
10 years ago
Brian Coca 154754ae50 pushed module_loader to task_queue_manager so all cli's can benefit from it
also normalized -M option across all cli
fixes #12016
10 years ago
Brian Coca 851ed45bbf adding display to plugins and start moving debug to display 11 years ago
James Cammarata 4c733fe4b7 Fix issues with vars_prompt and vars_files
* Prompt had to be moved up, as it needed to be done before the first
  templating of the play occurs, otherwise vars_files won't be templated
  properly
* Fixed a bug related to an earlier fix of vars_files incorporating
  extra vars to do the templating of the file name

Fixes #11404
11 years ago
James Cammarata e64989beb4 Moving ConnectionInformation -> PlayContext
Also making PlayContext a child class of the Playbook Base class,
which gives it access to all of the FieldAttribute code to ensure
field values are correctly typed after post_validation

Fixes #11381
11 years ago
Brian Coca a09f44210e now callback errors are not silent but warnings 11 years ago
Brian Coca a918a1bd16 now calls correct v2_on_any callback method 11 years ago
James Cammarata 67671e328a Fix callback loading issue a slightly different way 11 years ago
James Cammarata a51c165157 Revert "load callbacks on init again as they did not seem to load with new call from executor"
This reverts commit cf4ed9a556.
11 years ago
Brian Coca cf4ed9a556 load callbacks on init again as they did not seem to load with new call from executor 11 years ago
James Cammarata 08ad05c83b Make sure callbacks are loaded in the tqm a bit earlier
Fixes #11463
11 years ago
Brian Coca 7416e00541 fixed condition for loading whitelisted callbacks 11 years ago
James Cammarata 927072546b Fixing up some issues with plugin loading 11 years ago
James Cammarata 21c14363fd Allow callback plugins to be whitelisted 11 years ago
Brian Coca f29c1c7452 respect undefined config setting 11 years ago
James Cammarata f3f3fb7c49 Fixing vars_prompt 11 years ago
James Cammarata ce3ef7f4c1 Making the switch to v2 11 years ago