ansible-galaxy 命令

  1. ansible-galaxy 輔助說明,第一行的 [delete|import|... 是可用的子命令。
    [deyu1@kvm19 ansible]$ ansible-galaxy --help
    Usage: ansible-galaxy [delete|import|info|init|install|list|login|remove|
    search|setup] [--help] [options] ...
    
    Perform various Role related operations.
    
    Options:
      -h, --help            show this help message and exit
      -c, --ignore-certs    Ignore SSL certificate validation errors.
      -s API_SERVER, --server=API_SERVER
                            The API server destination
      -v, --verbose         verbose mode (-vvv for more, -vvvv to enable
                            connection debugging)
      --version             show program's version number, config file location,
                            configured module search path, module location,
                            executable location and exit
    
     See 'ansible-galaxy <command> --help' for more information on a specific
    command.
    
  2. ansible-galaxy 每個子命令都有輔助說明,查詢 search 的輔助說明。
    [deyu1@kvm19 ansible]$ ansible-galaxy search --help
    Usage: ansible-galaxy search [searchterm1 searchterm2] [--galaxy-tags galaxy_tag1,
    galaxy_tag2] [--platforms platform1,platform2] [--author username]
    
    Search the Galaxy database by tags, platforms, author and multiple keywords.
    
    Options:
      --author=AUTHOR       GitHub username
      --galaxy-tags=GALAXY_TAGS
                            list of galaxy tags to filter by
      -h, --help            show this help message and exit
      -c, --ignore-certs    Ignore SSL certificate validation errors.
      --platforms=PLATFORMS
                            list of OS platforms to filter by
      -p ROLES_PATH, --roles-path=ROLES_PATH
                            The path to the directory containing your roles. The
                            default is the roles_path configured in your
                            ansible.cfg file (/etc/ansible/roles if not
                            configured)
      -s API_SERVER, --server=API_SERVER
                            The API server destination
      -v, --verbose         verbose mode (-vvv for more, -vvvv to enable
                            connection debugging)
      --version             show program's version number, config file location,
                            configured module search path, module location,
                            executable location and exit
    
     See 'ansible-galaxy <command> --help' for more information on a specific
    command.