Components API

If you’re using Ansible, I’m about to release a raw_component module that enables you to upload files/components to raw repositories.

The Ansible task is currently looks like the following:

- name: Upload artifact to Nexus
  cloudkrafter.nexus.raw_component:
    file: /tmp/package.tar.gz # file to be uploaded when state is present
    state: present # when absent, filename will be deleted from repository
    directory: /some-directory # Default is '/' for the root of the repository
    filename: package-name.tar.gz # name of component once uploaded
    repository: https://nexus.instance.local/repository/<repo_name>
    username: "{{ nexus_username }}"
    password: "{{ nexus_password }}" # use token or password
    usertoken: "{{ nexus_usertoken }}" # use token or password
    validate_certs: true

More modules are coming soon: GitHub - CloudKrafter/nexus-ansible-collection: Ansible collection to install, configure and interact with Nexus Repository Manager