#5130 port ansible vhost-info script to ansible 2.0 api
Closed: Fixed Opened 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.


testing per commit: http://infrastructure.fedoraproject.org/cgit/ansible.git/commit/?id=b818014

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
(): '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. ;)

closing with happy commit: http://infrastructure.fedoraproject.org/cgit/ansible.git/commit/?id=a7d6d24

Metadata