Callback plugin didn't work with Ansible v2.0

122 views
Skip to first unread message

Arbab Nazar

unread,
Jan 2, 2016, 4:18:44 AM1/2/16
to Ansible Project

I am using Ansible v2.0 and using this plugin, which shows the time that each task consume and here is my directory struture:

.
├── aws.yml
├── callback_plugins
│   ├── profile_tasks.py  
├── inventory
│   └── hosts
├── roles
│   ├── ec2instance
│   │   ├── defaults
│   │   │   └── main.yml
│   │   └── tasks
│   │       └── main.yml
│   ├── ec2key
│   │   ├── defaults
│   │   │   └── main.yml
│   │   └── tasks
│   │       └── main.yml
│   ├── ec2sg
│   │   ├── defaults
│   │   │   └── main.yml
│   │   └── tasks
│   │       └── main.yml
│   ├── elb
│   │   ├── defaults
│   │   │   └── main.yml
│   │   └── tasks
│   │       └── main.yml
│   ├── rds
│   │   ├── defaults
│   │   │   └── main.yml
│   │   └── tasks
│   │       └── main.yml
│   └── vpc
│       ├── defaults
│       │   └── main.yml
│       └── tasks
│           └── main.yml
└── secret_vars
    ├── backup.yml
    └── secret.yml

But when I run the playbook, it didn't show the result, can you please point me that where I am making mistake.

Brian Coca

unread,
Jan 4, 2016, 5:54:28 PM1/4/16
to Ansible Project
the plugin is included with ansible 2.0 and as most of those included
it requires whitelisting in ansible.cfg, don't copy it to custom
folders, you can simply enable it doing the following:

ansible.cfg:
callback_whitelist = profile_tasks
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/cb748fde-826a-4079-b49a-e8e7e90c14d1%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Brian Coca

Arbab Nazar

unread,
Jan 5, 2016, 1:29:44 AM1/5/16
to Ansible Project
Thanks Brian, work perfectly.
Reply all
Reply to author
Forward
0 new messages