Open uwehdaub opened 5 days ago
What does your ansible command look like?
Are you using tags? Or only execute partials of the playbook?
Haven't seen this myself tho..
I have a version of this role that mainly uses API calls instead of Groovy. It can be found at https://github.com/CloudKrafter/nexus3-pro
Let me know if you need more help
The ansible command looks like
> ansible-playbook --tags nexus -l test nexus.yml
So yes, I'm using tags, but not to execute the nexus role partially.
The corresponding part of nexus.yml
is
vars_files:
- nginx.yml
- nexus_secrets.yml
- nexus_blobstores.yml
- nexus_privileges_and_roles.yml
- nexus_local_users.yml
- nexus_ldap_users.yml
- nexus_repo_maven.yml
- nexus_repo_npm.yml
- nexus_repo_raw.yml
- nexus_repo_nuget.yml
- datadog-checks.yml
- google-cloud.yml
roles:
- { role: "google.cloud.gcloud", tags: ["backup", "basic", "nexus"] }
- { role: "nexus.basic", tags: ["basic", "nexus"] }
- { role: "gcloud-config", tags: ["backup", "config"] }
- { role: "geerlingguy.java", tags: ["nexus", "java"] }
- { role: "ansible-thoteam.nexus3-oss", tags: ["nexus"] }
- { role: "geerlingguy.nginx", tags: ["nginx"] }
- { role: "datadog.datadog", tags: ["datadog"] }
- { role: "mtail", tags: ["mtail"] }
The nexus tag is executing the full ansible role (with create_blobstores.groovy commented out to get around the error from #431)
I did a second test. This time only running the nexus role and upgrading step by step: 3.71.0 --> 3.72.0 --> 3.73.0. The upgrade 3.71.0 --> 3.72.0 works fine (apart of #431) but 3.72.0 --> 3.73.0 fails with the above error message during the configuration of the LDAP connection.
Alright, that means we have to move more tasks to the Nexus API. Will take a look at it later this week.
During the update from Nexus 3.71.1 to 3.73.0 the role (v2.5.2) fails with the following error message:
This is the next error I stumbled in when I patched the ansible role locally (by commenting out the parts that are responsible for #431). It seems that over time more and more groovy scripts needs to be replaced by API calls.