Hi together, managing a bigger project I am defining role dependencies in 
role's
# meta.yml
  - name: myrole
    src: git+git@myserver/myrole.git
    version: master


The problem is that ansible also *always* executes the dependencies *prior* 
to the role,
some of the role dependencies should be executed at a certain point with 
`include_role`

*Example:*
- I have a 'java' role which installs the newest java version .
- The 'java' role depends on the `certificates` role, which needs to be 
executed *after *the java role,
   as the java keystore does not exist prior to that
- thus the java role includes the certificates role

# playbook.yml

- hosts: myhost
  roles:
    - {role: java, tags: ['java']}

# java/tasks/main.yml

- include_tasks: do_install_java_and_more.yml

- import_role:
    name: certificates

# java/meta/main.yml

  galaxy_info:
  author: Me
  description: Role to install java

  dependencies:
    - name: certificates
      src: myserver/certificates.git
      version: master


-> This causes the `certificates` role to be executed twice.

*Question*: Is there any way to define dependencies just to be installed 
with galaxy?

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].
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/d9b44956-a42b-402a-abac-70d98ae25241%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to