I do this by tagging each dependent role as 'dependent-role' and then
use the --skip-tags dependent-role when I need to execute just the top
level role (usually only for testing).

On Thu, Oct 9, 2014 at 1:11 PM, Chris Arnesen <[email protected]> wrote:
> He just means that sometimes the user wants to run a role without having to
> first run through all its dependencies, something like:
>
> ansible-playbook foo.yml --skip-role-dependencies
>
> which would run the roles as if they had no dependencies.
>
> On Sunday, December 8, 2013 7:54:04 AM UTC-8, Michael DeHaan wrote:
>>
>> When you say "checking role dependencies" is slow, can you elaborate?
>>
>> There's a feature of Ansible called role dependencies which has nothing at
>> all to do with the network, nor does it run any tasks, so I'm pretty sure
>> we're not talking about the same thing.
>>
>> Or if we are, you've somehow got a super-strange recursive loop going on
>> that we didn't anticipate and it's not going to get done ever -- but you
>> said it does get done.
>>
>> In either case, more info would be great!
>>
>>
>>
>>
>> On Sun, Dec 8, 2013 at 10:07 AM, Brian Green <[email protected]> wrote:
>>>
>>> Have you tried something like:
>>>
>>> ---
>>> dependencies:
>>>     - { role: some_role, when: some_role_dependency is not defined }
>>>
>>> ansible-playbook -i hosts some_role.yml -e "some_role_dependency=false"
>>> - skips dependency
>>> ansible-playbook -i hosts some_role.yml
>>> - executes dependency
>>>
>>>
>>> On Sunday, December 8, 2013 3:34:19 AM UTC-6, [email protected] wrote:
>>>>
>>>> Sometimes, we would like deploy a machine without the need for checking
>>>> the "Role Dependencies", because it is very slow for our playbook (up to 5
>>>> mins), is it possible?
>>>>
>>>> Thanks.
>>>
>>> --
>>> 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].
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>>
>> --
>> Michael DeHaan <[email protected]>
>> CTO, AnsibleWorks, Inc.
>> http://www.ansibleworks.com/
>>
> --
> 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/d515f22c-a079-44c8-ad34-49cd51e47814%40googlegroups.com.
> 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/CAJQqANczfo3aXQ2kf5JXu98hC8%3DU2gEs6Zf9yEDx-C7noObU3w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to