inhumantsar.artifactory

ansible-role-artifactory

什么?

通过基于 Docker Compose 的服务搭建 Artifactory。

如何操作?

yum clean all && yum update -y
yum install -y git gcc python-devel openssl-devel

# 安装 pip - 仅适用于 RHEL
# curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | sudo python2.7

# 针对没有订阅访问的 RHEL 系统的解决方法
# rpm -ivh http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.10-2.el7.noarch.rpm

pip install ansible

echo -e """- src: geerlingguy.docker
- src: inhumantsar.artifactory""" > requirements.yml

ansible-galaxy install -r requirements.yml

echo """---    
- hosts: localhost
  roles:
   - geerlingguy.docker
   - inhumantsar.artifactory""" > playbook.yml

ansible-playbook playbook.yml

停用

ansible-playbook playbook.yml -e service_state=absent```
安装
ansible-galaxy install inhumantsar.artifactory
许可证
bsd-3-clause
下载
951
拥有者