dimmaryanto93.sonatype_nexus_oss

dimmaryanto93.sonatype_nexus_oss

这个仓库用于在Linux上安装Sonatype nexus-oss

支持平台

  • Debian
  • Ubuntu
  • CentOS

Ansible - 用户指南

需要进行的准备工作包括:

  1. 在服务器上创建新用户,建议使用非常强的密码或密码生成器。
adduser <用户名>
  1. 使用visudo将其添加到sudoers名单中,设置为NOPASSWD。
用户名    ALL=(ALL) NOPASSWD:ALL
  1. 使用私钥进行ssh登录验证,在本地机器上生成ssh密钥,然后使用ssh-copy-id user@your-ip-server将公钥复制到服务器上。

要求

使用此角色需要安装以下包/集合:

您可以通过以下方式安装:

ansible-galaxy collection install ansible.posix community.general

或者可以使用requirement.yaml文件并通过ansible-galaxy collection install -r requirement.yaml进行安装,格式如下:

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

角色变量

有几个变量可以用来设置sonatype nexus-oss,包括以下内容:

变量名称 示例值 描述
nexus_download_url https://download.sonatype.com/nexus/3/latest-unix.tar.gz 最新版Linux下载链接
nexus_installation_path /opt/nexus 默认提取/安装文件夹
nexus_user nexus 运行nexus服务的普通用户
nexus_default_port 8081 Web管理员控制台的默认端口
nexus_admin_password_print true 显示管理员用户登录的默认密码

依赖

要安装Sonatype Nexus OSS,我们需要 Java 开发工具包(JDK),符合官方 系统要求

我们可以使用角色 oracle_java 或手动安装。

示例剧本

以下是如何使用您的角色(例如,传递变量作为参数)的示例:

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

许可证

MIT

关于项目

Install sonatype nexus-oss for linux

安装
ansible-galaxy install dimmaryanto93.sonatype_nexus_oss
许可证
Unknown
下载
138
拥有者
Chief Technology Officer @tabeldatadotcom