【问题标题】:Ansible Galaxy keep SCM filesAnsible Galaxy 保留 SCM 文件
【发布时间】:2016-11-07 15:44:03
【问题描述】:

我正在使用命令:

ansible-galaxy install -r requirements.yml

requirements.yml 在哪里:

- src: https://github.com/USERNAME/ANSIBLE-ROLE.git
  version: master
  scm: git

它会创建目录:/etc/ansible/roles/ANSIBLE-ROLE

如何将 SCM 文件保存为 .git 目录?

【问题讨论】:

    标签: git ansible ansible-galaxy


    【解决方案1】:

    我猜你在这里不走运。
    This 是如何完成的:mkdir、clone、checkout、archive、rmtree。
    然后从临时存档文件中安装所需的角色。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-06-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-25
      • 2023-02-02
      • 1970-01-01
      • 2016-08-25
      相关资源
      最近更新 更多