https://github.com/mcaimi/ansible-nexus-module
Ansible Module to interact with Sonatype Nexus3
https://github.com/mcaimi/ansible-nexus-module
ansible-modules nexus3
Last synced: 6 months ago
JSON representation
Ansible Module to interact with Sonatype Nexus3
- Host: GitHub
- URL: https://github.com/mcaimi/ansible-nexus-module
- Owner: mcaimi
- License: gpl-3.0
- Created: 2021-05-17T16:50:53.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-24T15:21:29.000Z (over 4 years ago)
- Last Synced: 2025-03-28T05:41:29.411Z (7 months ago)
- Topics: ansible-modules, nexus3
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 5
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Module to interact with Sonatype Nexus
An extremely simple implementation of Nexus3 upload/download APIs for Ansible.
Requires:* python-requests
* python3
* ansible 3+## Artifact Upload Example
```yaml
- name: Upload an artifact to nexus
nexus:
nexus_endpoint: "http://nexus.apps.kubernetes.local"
username: "jenkins-nexus"
password: "jenkins"
artifact_id: "org.redhat:new-application-artifact:1.0.0-RELEASE"
artifact_format: "jar"
source: "/tmp/artifact.jar"
operation: "PUT"
repository: "maven-releases"
```## Artifact Download Example
```yaml
- name: Download an artifact from Nexus repo
nexus:
nexus_endpoint: "http://nexus.apps.kubernetes.local"
username: "jenkins-nexus"
password: "jenkins"
artifact_id: "org.redhat:openshift-demo-application-quarkus-runner:1.1.1-SNAPSHOT.12"
artifact_format: "jar"
target: "/tmp/artifact.jar"
repository: "maven-snapshots"
```## TODO
* Better error handling
* Better Nexus API usage