Commit graph

38 commits

Author SHA1 Message Date
Kevin Fenzi
0aba558968 callback_plugins: try and run a simple 2to3 over the logdetail plugin
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-04 15:24:09 -07:00
Kevin Fenzi
d05c1a61b9 ansible server: we enable logdetail, so call the plugin logdetail
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-03 11:41:55 -07:00
Pierre-Yves Chibon
dab9296b8c Attempt to make self.play_context.connection JSON serializable
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-05-14 22:54:54 +02:00
Pierre-Yves Chibon
6d975e3959 Add some debugging to the logdetail callback
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-05-14 22:40:02 +02:00
Kevin Fenzi
4957a811f1 ansible: try and clean up callback_plugins
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-05-14 12:30:10 -07:00
Patrick Uiterwijk
38285f3b70 Cross the Ts
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-08-16 20:13:27 +00:00
Patrick Uiterwijk
a0edf8b4bc Turns out that now ansible has a callback.json, but we mean the upper json
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-08-16 20:12:30 +00:00
Toshio くらとみ
2f4c5bd79f logdetail callback plugin ported to ansible-2.0 and modify old logdetail plugin so it won't run automatically in 2.0 2016-01-30 04:28:19 +00:00
Toshio くらとみ
379afc6db5 Make callbacks ansible 2.0 compatible 2016-01-29 06:02:10 +00:00
Kevin Fenzi
ee510555a6 Revert "Try adding this to get 2.0 compatibility."
This reverts commit 449cc43446.
2015-12-13 19:33:59 +00:00
Kevin Fenzi
449cc43446 Try adding this to get 2.0 compatibility. 2015-12-13 19:06:32 +00:00
Ralph Bean
f6584f747f Kill that whitespace more carefully. 2015-02-02 15:52:34 +00:00
Ralph Bean
9671d2bb8c Make sure to strip any newlines off the name. 2015-02-02 15:34:48 +00:00
Stephen Smoogen
ca66b2b7ab and we make logfile names suck less. 2015-01-13 00:25:01 +00:00
Kevin Fenzi
3947d129f2 Change all the old first_available_file to with_first_found 2014-06-12 20:15:37 +00:00
Kevin Fenzi
389600314b only_if is going bye bye. 2014-01-24 16:34:05 +00:00
Kevin Fenzi
5a58c171f8 Lets make this a _ to be nicer 2014-01-22 21:16:39 +00:00
Kevin Fenzi
ffcff93ce8 Add check diff to ansible logging 2014-01-22 20:32:05 +00:00
Ralph Bean
defd120da2 Remove trailing whitespace. 2013-08-06 01:24:43 +00:00
35f1328a49 make sure we ALWAYS get the userid 2013-07-08 11:40:56 -04:00
3bfedc4029 it's a dict not an object, dumbass 2013-07-05 18:26:54 -04:00
8455e65fbf try to make log detail show check vs actual changes 2013-07-05 18:24:39 -04:00
272a6b10b5 try os.getlogin() first then fall back to os.geteuid() 2013-07-04 15:23:16 -04:00
4ea5bc2a42 add patch from jp mens to fix os.getlogin() when running w/o a tty :) 2013-07-04 13:50:34 -04:00
97a906435a add task_userid to any task not just ansible_cmd 2013-07-03 23:04:46 -04:00
e6e8cc0d4b make pid a str 2013-07-03 16:50:31 -04:00
2f1fb8a079 new sub path for logs:
/var/log/ansible/$playbook_name/YYYY/MM/DD/HH.mm.SS/<logs here>
 make the playbook.info file be playbook-$PID.info
2013-07-03 16:42:56 -04:00
d6d35dea64 add info on who wrote this 2013-07-03 17:05:25 +00:00
79d8b2e656 add a playbook_start and end var to the pb info 2013-07-01 18:09:00 +00:00
ad4a9c04b9 try a tab, for fun 2013-07-01 17:57:16 +00:00
655b0d9b7b unreachable returns a string :( 2013-07-01 17:28:02 +00:00
1451fc3c61 data not res 2013-06-28 22:34:25 +00:00
43b4b24c44 add userid into non-playbook task logs 2013-06-28 22:32:56 +00:00
67c1d4dfb6 make logdetail play better with ansible direct commands 2013-06-28 22:20:26 +00:00
8c8e3675cb don't add the module invocation
and check {{ }} syntax in the logger
2013-06-28 21:28:29 +00:00
d4f08e57b0 not 750, 0750 2013-06-28 21:18:44 +00:00
091587af88 add dir perms
fix file import notifications
2013-06-28 21:08:51 +00:00
20b83610b4 add logdetail callback plugin - hopefully this will not break for us 2013-06-28 20:59:12 +00:00