跳至主要內容

Ansible-galaxy

blogresLinuxAnsible约 206 字小于 1 分钟

Ansible-galaxy

Ansible-galaxy

Ansible 中文指南open in new window

本节示例文件 提取码:1234open in new window

语法

ansible-galaxyopen in new window :是一个免费的用于查找,下载,评论各种社区开发的 Ansible 角色

ansible-galax语法open in new window

usage: ansible-galaxy [-h] [--version] [-v] TYPE ...

执行各种与角色和集合相关的操作。

positional arguments:
  TYPE
    collection   管理Ansible Galaxy收藏。
    role         管理Ansible Galaxy角色。

optional arguments:
  -v, --verbose  详细模式(-vvv了解更多信息,-vvv启用连接调试)
  • collection

    • collection init 初始化集合
    • collection build 构建集合
    • collection publish 发布集合
    • collection install 安装
  • role

    • role init 初始化角色
    • role remove 删除
    • role delete 删除
    • role list 角色列表
    • role search 搜索
    • role import 导入
    • role setup 设置
    • role info 信息
    • role install 安装