从 WebGUI 运行 playbook 时出现 Ansible AWX 问题

问题描述

我最近配置了 Ansible AWX,/etc/ansible 上的主机文件由两个服务器组填充:

// any file

const { sendMessage } = require('../utils/socket-io');

const foo = async () => {
  const roomId = '12345';
  const key = 'new-order';
  const message = 'new order assigned';
  
  sendMessage(roomId,key,message);
};

通过 CLI 我的名为 check-service-status.yml 的剧本可以正确运行

[ovirtmanager]

10.0.0.10

[ovirthv]

10.0.0.100
10.0.0.101

使用 WebGUI 我收到此消息:

---
- hosts: ovirthv
  become: no
  gather_facts: yes
  tasks:
  - name: "Populate service facts"
    service_facts:
  - name: "See if the service <lldpad> is up and running"
    debug:
      msg: "{{ansible_facts.services['lldpad.service'].state}}"
  - name: "See if the service <fcoe> is up and running"
    debug:
      msg: "{{ansible_facts.services['fcoe.service'].state}}"

我该如何解决这个问题?怎么了? 非常感谢!

更新:这是通过 WebGUI 执行的剧本

[WARNING]: Could not match supplied host pattern,ignoring: ovirthv
PLAY [ovirthv] *****************************************************************
skipping: no hosts matched
PLAY RECAP *********************************************************************

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)