Hi
I am new to Ansible so apologies if I am going about this the wrong way. I am creating a project with two roles. A ‘java’ role and a ‘jetty’ role. Jetty has a dependency on java being installed so I was going to model it as a role dependency.
The problem I have is that the Jetty runtime has a runtime dependency on JAVA_HOME which may change if a newer version of java is installed - this newer version of Java deployment will break the Jetty runtime. I can fix this by re-running the ‘jetty’ role (which inherits the JAVA_HOME data from its child ‘java’ role) thereby updating its config. Other users of my automation may not know of this implicit dependency and would not re-execute ‘jetty’
I was wondering if this is a scenario that others have come across?
Any help would be appreciated.
Richard.