dimmaryanto93.sonatype_nexus_oss

dimmaryanto93.sonatype_nexus_oss

This repository is used to install Sonatype Nexus OSS on Linux.

Supported Platforms

  • Debian
  • Ubuntu
  • CentOS

Ansible - User Guide

Preparation steps include:

  1. Create a new user on your server. It's recommended to use a very-very strong password or a password generator.

    adduser <username>
    
  2. Grant sudo privileges without a password using visudo:

    username    ALL=(ALL) NOPASSWD:ALL
    
  3. Authenticate with a private key for SSH login. Generate an SSH key on your local machine and use ssh-copy-id user@your-ip-server to copy the public key to your server.

Requirements

To use this role, you need the following packages/collections:

You can install them with:

ansible-galaxy collection install ansible.posix community.general

Alternatively, you can use a requirement.yaml file to install with:

ansible-galaxy collection install -r requirement.yaml

The requirement.yaml file should look like this:

---
collections:
  - community.general
  - ansible.posix

Role Variables

Here are some variables you can use to configure Sonatype Nexus OSS:

Variable Name Example Value Description
nexus_download_url https://download.sonatype.com/nexus/3/latest-unix.tar.gz Link to download the latest version for Linux
nexus_installation_path /opt/nexus Default folder for extraction/installation
nexus_user nexus Normal user for running the Nexus service
nexus_default_port 8081 Default port for the web admin console
nexus_admin_password_print true Display default password for the admin user to log in

Dependencies

To install Sonatype Nexus OSS, you need the Java Development Kit (JDK) according to the requirements from the official website here.

You can use the oracle_java role or install it manually.

Example Playbook

Here's an example of how to use this role (with variables passed as parameters):

- hosts: servers
  become: true
  roles:
      - { role: dimmaryanto93.sonatype_nexus_oss }

License

MIT

Informazioni sul progetto

Install sonatype nexus-oss for linux

Installa
ansible-galaxy install dimmaryanto93.sonatype_nexus_oss
Licenza
Unknown
Download
154
Proprietario
Chief Technology Officer @tabeldatadotcom