搜索

第 2 章 安装 JBoss Web 服务器集合

download PDF

作为使用 Ansible 自动部署 Red Hat JBoss Web Server 的第一步,您必须从 Red Hat Automation Hub 下载并安装 JBoss Web Server 集合。JBoss Web Server 集合在 Red Hat Automation Hub 中命名为 redhat.jws。在安装 JBoss Web 服务器集合前,您必须确保您的系统符合某些先决条件。

先决条件

  • 您已通过安装 Red Hat Ansible Automation Platform 2.x 在系统中的控制节点上安装了 ansible-core 软件包版本 2.12 或更高版本。

    有关安装 Red Hat Ansible Automation Platform 的更多信息,请参阅 Red Hat Ansible Automation Platform 安装指南

  • 您已更新了 ansible.cfg 文件,以使用 Red Hat Automation Hub 作为 Ansible 集合 的主要来源。有关更新 ansible.cfg 文件的更多信息,请参阅开始使用自动化中心

流程

  • 在 Ansible 控制节点上,输入以下命令:

    $ ansible-galaxy collection install redhat.jws
    注意

    如果上述命令生成 Failed to find collection redhat.jws:* 错误消息,请确定您正确更新了 ansible.cfg 文件以使用 Red Hat Automation Hub,如 开始使用自动化中心 所述。

    前面的命令会产生以下输出:

    Starting galaxy collection install process
    
    Process install dependency map
    
    Starting collection install process
    
    ...
    
    redhat.jws:2.0.x was installed successfully
    
    ...
    
    redhat.runtimes_common:1.1.x was installed successfully
    
    ...
    
    ansible.posix:1.5.x was installed successfully

    对于 brevity,前面的示例使用 ellipses 来表示忽略的文本。在前面的输出中,2.0.x 代表 redhat.jws 集合的完整版本号(如 2.0.0)。同样,1.1.x1.5.x 代表已安装的 redhat.runtimes_commonansible.posix 集合的完整版本号。

验证

  • 在 Ansible 控制节点上,输入以下命令:

    $ ansible-galaxy collection list

    前面的命令显示已安装集合的列表。例如:

    Collection                 Version
    -------------------------- -------
    ansible.posix              1.5.4
    redhat.jws                 2.0.0
    redhat.runtimes_common     1.1.2
    ...

如上例所示,当您安装 redhat.jws 集合时,ansible.posixredhat.runtimes_common 集合也会在 Ansible 控制节点上自动下载并安装。redhat.runtimes_common 集合提供了一组标准实用程序,以支持各种 Red Hat Runtimes 产品(如 JBoss Web Server)的自动化部署。

注意

如果您的 Ansible 控制节点上已存在适当的 ansible.posixredhat.runtimes_common 集合,则这些集合不会再次自动安装。

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.