#5130 port ansible vhost-info script to ansible 2.0 api
Closed: Fixed None Opened 8 years ago by kevin.

we have a script in our ansible repo in scripts/vhost-info that uses the ansible 1.9 api. We need to port it over to 2.0's api.


A few minor issues:

  • Output has a logdetail issue and some odd date/timestamps?

% ./vhost-info.v2 --host virthost04*
[WARNING]: Failure when attempting to use callback plugin
(</srv/web/infra/ansible/callback_plugins/logdetail2.CallbackModule object at 0x42efa90>): 'NoneType' object has no
attribute '_file_name'

Tuesday 01 March 2016 17:23:08 +0000 (0:00:00.039) 0:00:00.039 *
Tuesday 01 March 2016 17:23:08 +0000 (0:00:00.267) 0:00:00.306 *

virthost04.phx2.fedoraproject.org: 128662/128662 mem(unused/total) 64/64 cpus(unused/total)

  • Script should be mod 755 so you can run it directly. ;)

Login to comment on this ticket.

Metadata