/ansible-nexus

Ansible playbook to install Sonatype Nexus (free edition)

Primary LanguageShellMIT LicenseMIT

Role Name

Ansible Sonatype Nexus role. Completely independent from any package manager. Does not require root or sudo permission to run.

TODO

  • Add datadir (plus entry nexus-work={{datadir}} in conf/nexus.properties
  • Change default admin account (admin/admin123)

Role Variables

  • 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

Dependencies

wget (on host, not on clients)

Example Playbook

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' }

License

MIT

Author Information

This playbook is heavily inspired by Alexander Ramos Jardim. Any errors are probably my fault.