Hi J,
thanks for taking time to look into this.I was using kitchen-vagrant to do testing by launching debian in virtualbox. My hosts file,kitchen.yml, including main.yml and debian.yml files that i have so far in my play book are attached below. I am also curios if i can call tasks directly through the playbook or i need to mention their absolute path during the path. when i tried just the name of the task, it failed with the message "Error: not found".
Kitchen.yml---
driver:
name: vagrant
provisioner:
name: ansible-playbook
hosts: localhost
remote_user: root
roles_path: roles
playbook: main.yml
ansible_verbose: true
platforms:
- name: debian-8.2
driver_plugin: vagrant
driver_config:
box: debian-8.2
box_url:
https://atlas.hashicorp.com/puppetlabs/boxes/debian-8.2-64-nocm network:
- ['forwarded_port', {guest: 8080, host: 8080} ]
- ['private_network', { ip: '192.168.33.11' } ]
main.yml---
- include: "roles/tasks/debian.yml"
when: ansible_os_family == 'Debian'
roles/tasks/debian.yml