Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在Ansible Galaxy 的文档中,我发现您可以安装特定版本的角色。我无法找到角色本身定义版本的内容。是 Git 标签、meta/main.yaml中的某个键还是其他什么?
要安装一个版本,只需 git 标记它:
$ git tag v1.0 $ git push origin v1.0
然后从手册页中,您可以安装特定的角色版本:
"ansible-galaxy install [options] [-r FILE | role_name(s)[,version] | tar_file(s)]"