You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---
- name: Nexus
hosts: nexus
vars:
nexus_version: '3.22.0-02'
nexus_version_running: '3.22.0-02'
nexus_roles:
- id: Developpers-ansible1 # maps to the LDAP group
name: developers-ansible1-edited
description: All developers edited
privileges:
- nx-search-read
roles: []
nexus_blobstores:
- name: company-artifacts-updated
path: /var/nexus/blobs/company-artifacts
nexus_repos_maven_hosted:
- name: company-project-updated-2
version_policy: mixed
write_policy: allow
blob_store: company-artifacts-updated
nexus_local_users:
- username: jenkins-ansible1 # used as key to update
first_name: Jenkins-ansible1-edited-2
last_name: CIEdited
state: present # default value if ommited, use 'absent' to remove user
email: [email protected]
password: "s3cr3t"
roles:
- Developpers-ansible1 # role ID here
roles:
- { role: nexus3-oss }
Issues description/clarification:
Issue with updating of the resources:
When we change repository name, it just creates new one. Without touching old one.
Expected behaviour: either re-create or change in-place if possible.
When we update values for User it doesn't reflect at all. Nothing happens.
The same update behaviour for roles.
Issue with deleting of the resources:
When we fully delete values - nothing happens.
Expected behaviour: resources get deleted. It applies (this issue) to roles/users/repositories.
The text was updated successfully, but these errors were encountered:
Removing objects with state: absent is only supported for user for time being. No plan or schedule to add this feature at the moment. You have to remove roles and repositories manually until I get the time to work on that or someone proposes a PR I have time to review and merge.
Repository name as well as format, type and storage blobstore is immutable in Nexus and therefore cannot be changed (see GUI). Only deletion / (re) creation is possible and contents are lost. The only identifier available being the name, there is no way to implement something to recreate in place.
There is an open bug about updating users and roles. Basically, only changes in privileges and roles are reflected. I did not get time to work on this and no PR was proposed yet.
I just created an enhancement ticket regarding state: absent so that it does vanish (#289). You can follow the other one for updates on roles and users. I hope to get some time soon.
Play:
Issues description/clarification:
Issue with updating of the resources:
Expected behaviour: either re-create or change in-place if possible.
The same update behaviour for roles.
Issue with deleting of the resources:
When we fully delete values - nothing happens.
Expected behaviour: resources get deleted. It applies (this issue) to roles/users/repositories.
The text was updated successfully, but these errors were encountered: