Ansible Sonatype Nexus role. Completely independent from any package manager. Does not require root or sudo permission to run.
- Add datadir (plus entry nexus-work={{datadir}} in conf/nexus.properties
- Change default admin account (admin/admin123)
- nexus_download_dir: download path on the control machine that will be used. Defaults to '/tmp'
- nexus_version: Nexus version to be installed. Defaults to 'latest'
- nexus_installation_dir: installation prefix that will be used on installation hosts. Defaults to '/usr/share'
- nexus_work_dir: working directory, aka sonatype-work
- nexus_port: TCP port
wget (on host, not on clients)
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: jhinrichsen.nexus, nexus_installation_dir: '/opt' }
MIT
This playbook is heavily inspired by Alexander Ramos Jardim. Any errors are probably my fault.