dimmaryanto93.sonatype_nexus_oss_registry
dimmaryanto93.sonatype_nexus_oss_registry
此库用于通过Rest API配置Sonatype Nexus OSS注册表,支持以下功能:
- docker
- maven
- npm
- 等等
Ansible - 用户指南
准备工作包括:
在您的服务器上创建新用户,建议使用非常强的密码或密码生成器。
adduser <username>使用
visudo将用户权限设置为无密码 sudo。username ALL=(ALL) NOPASSWD:ALL使用私钥进行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,例如:
| 变量名 | 示例值 | 描述 |
|---|
依赖
无
示例剧本
包含一个示例,展示如何使用该角色(例如,将变量作为参数传递)也总是对用户有帮助:
- hosts: servers
vars:
nexus_admin_user: admin
nexus_admin_password: admin123
nexus_default_host: 'localhost'
nexus_default_port: '8081'
nexus_registry_docker_enabled: true
docker_registry_hosted_name: 'docker-registry'
docker_registry_hosted_port: '8087'
docker_registry_group_name: 'docker-public-group'
docker_registry_group_port: '8086'
nexus_registry_docker_repositories: []
roles:
- dimmaryanto93.sonatype_nexus_oss_registry
许可证
MIT
安装
ansible-galaxy install dimmaryanto93.sonatype_nexus_oss_registry许可证
Unknown
下载
143
拥有者
Chief Technology Officer @tabeldatadotcom
