Since a role file is a great way to download modules from git or galaxy, I 
was wondering if it made sense to put the role-file option in 
ansible-playbook?

So, rather than:
ansible-galaxy install -r role_file.yml -p path/to/roles
ansible-playbook mainPlaybook.yml

it could be simplified to:
ansible-playbook -r role_file.yml -p path/to/roles mainPlaybook.yml

Besides being more concise and, therefore, readable, there is an added 
benefit of any errors being handled by one call, rather than run galaxy, 
check errors, do the necessary, run playbook, check errors, do the 
necessary.

I have forked to the repository with a straight-forward change to support 
this, but I wanted to inquire if it made sense to the design of ansible:
https://github.com/tstone2077/ansible/commit/231e2241fca96d2693dd3dbd73883dcec459c248

Thanks,
Thurston

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9839298d-d7c9-4e9f-9f95-fd055c423120%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to