There will not be a task that applies roles, the "role" directive is for
this.



On Thu, Nov 6, 2014 at 2:02 AM, Juho Viitasalo <[email protected]>
wrote:

> I'm not sure if we are talking about the same thing. Dennis didn't speak
> about lazy loading roles on demand, but running role as a task so you could
> do custom stuff between role execution. With core module called 'role' I
> meant (as Dennis suggested) this:
>
> - name: configure repo for patched mysql server
>   copy: src=my-repo.repo dest=/etc/yum.repos.d/my-repo.repo
>
> - name: install and prepare mysql
>   role: mysql-server root_password=test
>
> - name: add additional mysql user
>   mysql_user: name=admin host='%' ...
>
> - name: register this database server with several external services
>   role: register_db_server
>
>
>
>
> 2014-11-05 16:30 GMT+02:00 Michael DeHaan <[email protected]>:
>
>> Not seeing post from Denis on this thread - can you provide a link?
>>
>> Roles to download roles are possible, via something that uses
>> ansible-galaxy's CLI, though we need to refactor that a bit first (the
>> ongoing v2/ tree code) to make that more easy to access.
>>
>> On Wed, Nov 5, 2014 at 1:00 AM, Juho Viitasalo <[email protected]>
>> wrote:
>>
>>> I think Dennis's reasoning is good. I would also find this feature
>>> practical. Would it be possible to do a core module called 'role'?
>>>
>>> On Friday, October 4, 2013 5:13:25 PM UTC+3, Michael DeHaan wrote:
>>>>
>>>> "This does kinda solve the issue, however we want to treat the role as
>>>> readonly because changing it could break other playbooks."
>>>>
>>>> Ok, I'm confused now.
>>>>
>>>> What does "readonly" mean?
>>>>
>>>> Just don't modify the role in source control?
>>>>
>>>>
>>>>
>>>> On Fri, Oct 4, 2013 at 10:10 AM, Steve Weber <[email protected]>
>>>> wrote:
>>>>
>>>>>  > Saying you don't like ansible and then suggesting people use
>>>>> something else and linking to it isn't a good way to make friends.   You
>>>>> could have left that part out.
>>>>>
>>>>> Was not the intention..
>>>>>
>>>>> I have been using Ansible for ~a year and hit many roadblocks
>>>>> throughout the development.
>>>>> I did add that you are doing a good job keeping up to pace on issues.
>>>>>
>>>>>  > Roles already support dependencies as well since 1.3.
>>>>> This does kinda solve the issue, however we want to treat the role as
>>>>> readonly because changing it could break other playbooks.
>>>>>
>>>>> Anyway, keep up the good work and best of luck with AWX
>>>>>
>>>>> On Friday, 4 October 2013 09:22:56 UTC-4, Michael DeHaan wrote:
>>>>>
>>>>>> Hi Steve,
>>>>>>
>>>>>> Saying you don't like ansible and then suggesting people use
>>>>>> something else and linking to it isn't a good way to make friends.   You
>>>>>> could have left that part out.
>>>>>>
>>>>>> I'll help you anyway though, but please don't do it again.
>>>>>>
>>>>>> I strongly disagree that roles make any assumptions about whether
>>>>>> they are for bootstrap/basic/infrastructure/application.   You will
>>>>>> see in the documentation and code there's nothing in there at all about
>>>>>> these kinds of things and they are quite general purpose.
>>>>>>
>>>>>> As for a repository of roles, we're working on that.  Stay tuned!
>>>>>>
>>>>>> Roles already support dependencies as well since 1.3.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Fri, Oct 4, 2013 at 8:48 AM, Steve Weber <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>> I should add that Michael is doing an excellent good job improving
>>>>>>> these issues.
>>>>>>>
>>>>>>> I'm explicitly glad to see defaults/main.yml added to roles. This
>>>>>>> was my largest issue with sharing roles.
>>>>>>>
>>>>>>> --
>>>>>>> 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].
>>>>> 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/626b051f-fb47-4cfd-9d98-be31184a2156%40googlegroups.com
>>> <https://groups.google.com/d/msgid/ansible-project/626b051f-fb47-4cfd-9d98-be31184a2156%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 a topic in the
>> Google Groups "Ansible Project" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/ansible-project/9bghHncUQCM/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, 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%2BnsWgy_FJe__7Ei0Ub8QQVKZfF0V3o6U4e6XPGmDPSOuB3Vww%40mail.gmail.com
>> <https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgy_FJe__7Ei0Ub8QQVKZfF0V3o6U4e6XPGmDPSOuB3Vww%40mail.gmail.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%2BQ8zTzs_rS_8YnPME5er6XZWXXda2Ue%3DqoiQwnnSaSVRtN68w%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CA%2BQ8zTzs_rS_8YnPME5er6XZWXXda2Ue%3DqoiQwnnSaSVRtN68w%40mail.gmail.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%2BnsWgxoAw%2BKuM8EVyBT_7MGxW47wBiUzRBQ6udhCunA6ZwPWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to