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 :)