[ansible-project] Re: Quick way for testing new Ansible roles

2018-05-23 Thread Behrang
Thanks Mischa. I ended up doing something similar with Vagrant. - Created a symlink from the tests/roles dir to the root dir of the role I am writing - Installed the *vagrant-hostupdater* to add a custom host name to the Vagrant box I use for testing - Updated the inventory and

[ansible-project] Re: Quick way for testing new Ansible roles

2018-05-23 Thread Mischa ter Smitten
Have a look at some of our roles https://github.com/Oefenweb?tab=repositories. They are all tested on Travis CI and contain a Vagrantfile for manual testing. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group

[ansible-project] Re: Quick way for testing new Ansible roles

2018-05-22 Thread Behrang
ansible-galaxy generates the correct host name (localhost), so the docs on the website seem to be out of date. But the problem was that the role being developed is not under tests/roles. I added a symlink from tests/roles to the root directory of the role and that fixed the problem. On

[ansible-project] Re: Quick way for testing new Ansible roles

2018-05-21 Thread BIJAY PARIDA
Host example is not a valid host name. - hosts: localhost On Tuesday, 22 May 2018 07:31:24 UTC+5:30, Behrang wrote: > > Hi, > > In the docs , it is written > that: > > Test It > > The actual work to be performed gets added as playbook tasks to >