opstree_devops.nexus
osm_nexus
An ansible role to install and configure Nexus on Ubuntu, Redhat and CentOS.
Version History
| Date | Version | Description | Changed By |
|---|---|---|---|
| 9 April 2019 | v.1.0.0 | Initial commit | Sudipt Sharma |
| 6 February 2020 | v.1.0.1 | Created README.md | Abhishek Kapil |
Salient Features
- This Role automates the Nexus setup.
Supported OS
- Ubuntu 16 and 18
- RHEL 6 and 7
- CentOS 6.10 and 7
Dependencies
- Java 8(64-bit)
Directory Layout
NEXUS
├── defaults
│ └── main.yml
├── handlers
│ └── main.yml
├── README.md
├── tasks
│ ├── install.yml
│ ├── main.yml
│ ├── RedHat.yml
│ └── Ubuntu.yml
├── templates
│ ├── nexus-default.properties.j2
│ ├── nexus-init.j2
│ ├── nexus.rc.j2
│ ├── nexus.service.j2
│ └── nexus.vmoptions.j2
└── vars
└── main.yml
5 directories, 13 files
Role Variables
| Variables | Default Values | Description | Type |
|---|---|---|---|
| nexus_port | 8082 | nexus port no. | mandatory |
| nexus_min_memory | 1200M | Minimum memory required | Mandatory |
| nexus_max_memory | 1200M | Maximum memory required | Mandatory |
| nexus_installation_dir | /opt | installation directory for nexus | Optional |
| nexus_user | nexus | user for nexus | mandatory |
| nexus_group | nexus | group for nexus | mandatory |
| nexus_os_user_shell | /bin/bash | shell used by nexus user | mandatory |
Example Playbook
---
- name: It will automate nexus setup
hosts: server
become: true
roles:
- role: osm_nexus3
...
$ ansible-playbook site.yml -i inventory
Inventory
An inventory should look like this:-
[server]
192.xxx.x.xxx ansible_user=ubuntu
After the successful installation of nexus, browse through the nexus url and you would get your login page

#Future Proposed Changes
- Will make this role compatible for Amazon Linux.
#References
Author
Install
ansible-galaxy install opstree_devops.nexusLicense
Unknown
Downloads
130
Owner
