On Monday, June 2, 2014 9:58:37 PM UTC-7, [email protected] wrote: > > without having to edit any files between getting it finished... > > > Methodological issue, not practical: it feels dirty to edit a file between > the test and the application. > Is creating and editing a new file the only way to get from the "tested" > codebase to applying it to production hosts? > >> >> A role can have default variables overridden, depending on what it is it could be a simple task or a more complicated group of tasks...
A play can include more than one role, and is used to tie the role(s) to one or more hosts. So you probably do need to create a playbook like the one that James listed... then in your case you use something similar to your original attempt... ansible-playbook -i testing thisplay # Apply the role to all of the hosts in the testing inventory ansible-playbook -i production thisplay # Apply the role to all of the hosts in the production inventory ansible-playbook -i training thisplay -l justonehost # Apply the role to justonehost in the training inventory No changes need to be made to any files between these different commands I hope that this helps, Adam -- 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/d6619e20-df48-4da7-9bd7-991268b0263e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
