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 ?
Add the following to roles/php-fpm/meta/main.yml and that role will be invoked for each dependency
allow_duplicates: yes
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/6a8b0d67-15d1-4064-a00a-142f2f3054c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.