dimmaryanto93.sonatype_nexus_oss
dimmaryanto93.sonatype_nexus_oss
Repository ini digunakan untuk menginstall Sonatype nexus-oss untuk Linux
Support platform
- Debian
- Ubuntu
- CentOS
Ansible - User Guide
Persiapan yang harus di lalukan, diantaranya
- Create new user on your server, Recomend using very-very Strong Password or using password generator.
adduser <username>
- Granted to sudoers with NOPASSWD, using
visudo
username ALL=(ALL) NOPASSWD:ALL
- Authenticate with private-key for login ssh, generate ssh key on your local machine then use
ssh-copy-id user@your-ip-server
to copy public key to your server.
Requirements
Untuk menggunakan role ini, kita membutuhkan package/collection
Temen-temen bisa install, dengan cara
ansible-galaxy collection install ansible.posix community.general
Atau temen-temen bisa menggunakan requirement.yaml
file and install menggunakan ansible-galaxy collection install -r requirement.yaml
, dengan format seperti berikut:
---
collections:
- community.general
- ansible.posix
Role Variables
Ada beberapa variable yang temen-temen bisa gunakan untuk setting sonatype nexus-oss, diantaranya seperti berikut:
Variable name | Example value | Description |
---|---|---|
nexus_download_url |
https://download.sonatype.com/nexus/3/latest-unix.tar.gz |
Download link latest version untuk linux |
nexus_installation_path |
/opt/nexus |
Default extract / installation folder |
nexus_user |
nexus |
Normal user for running nexus service |
nexus_default_port |
8081 |
Default port for web admin console |
nexus_admin_password_print |
true |
Show default password for user admin to login |
Dependencies
Untuk mengginstall Sonatype Nexus OSS kita membuatuhkan Java Development Kit (JDK) sesuai dengan requirment dari official websiste seperti berikut
Kita bisa menggunakan role oracle_java atau install manualy
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
become: true
roles:
- { role: dimmaryanto93.sonatype_nexus_oss }
License
MIT
ansible-galaxy install dimmaryanto93.sonatype_nexus_oss