欧拉系统使用ansible安装软件报错Error: Unable to find a match: python2-dn

[root@centos7 ansible]# ansible test_192.168.190.230 -m yum -a "name=tcsh state=present"
test_192.168.190.230 | FAILED! => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    },
    "changed": false,
    "cmd": "dnf install -y python2-dnf",
    "msg": "Could not import the dnf python module using /usr/bin/python (2.7.18 (default, Jun 23 2021, 16:28:12) [GCC 7.3.0]). Please install `python2-dnf` package or ensure you have specified the correct ansible_python_interpreter.",
    "rc": 1,
    "results": [],
    "stderr": "Error: Unable to find a match: python2-dnf\n",
    "stderr_lines": [
        "Error: Unable to find a match: python2-dnf"
    ],
    "stdout": "base                                             60 kB/s |  24 kB     00:00    \nNo match for argument: python2-dnf\n",
    "stdout_lines": [
        "base                                             60 kB/s |  24 kB     00:00    ",
        "No match for argument: python2-dnf"
    ]
}
[root@centos7 ansible]#

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值