Commit Graph

8 Commits

Author SHA1 Message Date
Major Hayden bfc26ac698
Remove debug_message_collector plugin
Now that we have ARA, this plugin isn't that useful any longer.

Closes-Bug: 1715996
Change-Id: Idcbf06a0c1df0f4a485da298dd0f4dd95311463b
2017-09-08 12:46:52 -05:00
Major Hayden 5a2f82f38e Remove profile_tasks callback
This patch removes the profile_tasks callback so that we can use
the callback provided by upstream Ansible (which has been updated
to the callback 2.0 spec).

Change-Id: I2f5160bd3852615864310cff3c208a469d367e92
2017-02-06 09:03:20 -06:00
Major Hayden db492e7f5b Catch only debug tasks w/callback
The last patch for the debug collector fixed the jinja templating issue,
but it didn't keep the filter that checks the `action` attribute for each
task. This patch puts the filter back in.

Change-Id: I86835d272f037fee5545a888b8a6f67869f5ef66
2016-12-12 10:46:57 -06:00
Major Hayden ab01251f82 Fix Jinja2 in debug msg callback
The debug_message_collector callback wasn't getting the output of templated
debug messages properly. This patch ensures that the user gets rendered
templates in the debug message recap instead of Jinja2 code.

Closes-Bug: 1647487
Change-Id: I5bfc3b216497250ba28952dd0f5a2b46eb2a7cf2
2016-12-05 15:40:38 -06:00
Major Hayden 460df1e41e Display debug messages after playbook run
This patch adds a callback handler for displaying debug messages at the end of
a playbook run. This is helpful in situations where a debug message might be
lost in the middle of the Ansible output while a playbook runs.

You can view the output from a small example playbook here:

  https://gist.github.com/major/9583c97e335262228c2a9ede50d86458

Change-Id: I962b586751069a16adb073d05b33d310e0afc5af
2016-11-30 16:00:11 -06:00
Kevin Carter f25bf23558
Human readable logs should be removed
Whle the human readable logging functionality is nice for debug purposes
it has little to no value in general deployments and in slows Ansible
runs down considerably. In my opinion, this plugin should be removed.
If this is a desirable feature for an individual deployer they can pull
the plugin into their stack outside of OSA.

Change-Id: Ie07eefe8ffe2036815bc89d129862f105b9ff566
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-09-21 11:49:12 -05:00
Kevin Carter aa69b10a1a Add the Ansible human_log call back plugin
This change implements the human_log callback plugin within our plugins
repo. A v1/2 shim has been added as the base entry point to ensure the
callback plugin, if whitelisted, supports both Ansible V1 and V2.

Change-Id: Idad2623eeb7f73e20fe92d9e18cd99e45bc4b64f
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-06-30 13:58:49 -05:00
Jesse Pretorius fc411eaf89 Rename plugins folders to standard Ansible names
The standard Ansible names for the plugins folders [1] are singular.

This patch renames our plural names to singular names so that when
the plugins are downloaded into a default location there is no further
configuration required.

[1] https://github.com/ansible/ansible/blob/devel/lib/ansible/constants.py

Change-Id: Ib965750f267d11287a6196e2544c3a014a3e2029
2016-02-10 00:54:11 +00:00