"Methodological issue, not practical: it feels dirty to edit a file between
the test and the application."

I wouldn't look at it this way.

To edit the role, perhaps, likely, yes.

But the idea that a playbook is simply mapping roles to hosts -- and
keeping playbooks at top level very simple -- should be ok.




On Tue, Jun 3, 2014 at 12:19 PM, Adam Morris <[email protected]> wrote:

>
>
> 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
> <https://groups.google.com/d/msgid/ansible-project/d6619e20-df48-4da7-9bd7-991268b0263e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CA%2BnsWgwqMQhVgqpT8aNxcXSLTCKHnZkd_x%3DDWLfppZbT%3DO-%2BUg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to