Add the following to roles/php-fpm/meta/main.yml and that role will be
invoked for each dependency

allow_duplicates: yes

​

On 13 January 2015 at 20:54, vadimv Vatlin <[email protected]> wrote:

> Hello
>
> I want to create meta role to setup web site configuration nginx + php-fpm
>
>
> playbook client.yml:
>
> - roles:
>
>   - { role: web-site, sites: 'domain.com, domain1.com’, fpm_pool:
> ‘domain’ }
>
>   - { role: web-site, sites: 'site.com, site1.com', fpm_pool: ‘site’,
> www_dir: 'web', memory_limit: '128MB' }
>
>
> role/web-site/meta/main.yml:
>
> allow_duplicates: yes
>
> dependencies:
>
>   - { role: php-fpm, pool: "{{ fpm_pool }}" }
>
>
> role/php-fpm/
>
>
> I include web-site role twice but role php-fpm invoked only once . Why ?
> and how can i invoke php-fpm role twice ?
>
>  --
> 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/6a8b0d67-15d1-4064-a00a-142f2f3054c7%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/6a8b0d67-15d1-4064-a00a-142f2f3054c7%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/CAAnNz0MUrfjNVQPwjGAjY%3DTzkqSPBtvroDrQRF%3DhnRjqqf%2B-dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to