-1
我想安装本地rpm包。 在一种情况下,它也麻烦dnf安装本地rpm
- name: Atom text editor
dnf: name="/mnt/temp/Inbox/Soft/Atom editor/atom-1.18.0-x86_64.rpm"
when: ansible_os_family == "RedHat" and ansible_pkg_mgr == "dnf"
tags: [packages, work, txt, atom]
工作对于其他转它引发错误
- name: wine-launcher-creator
dnf: name="/mnt/warehous/Warehouse/Linux/rpm/wine-launcher-creator-1.0.8-2.noarch.rpm"
when: ansible_os_family == "RedHat" and ansible_pkg_mgr == "dnf"
tags: [packages, env, work, wine]
错误
TASK [wine-launcher-creator] ***************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: dnf.exceptions.Error: <exception str() failed>
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible_TaYSEN/ansible_module_dnf.py\", line 355, in <module>\n main()\n File \"/tmp/ansible_TaYSEN/ansible_module_dnf.py\", line 349, in main\n ensure(module, base, params['state'], params['name'])\n File \"/tmp/ansible_TaYSEN/ansible_module_dnf.py\", line 304, in ensure\n base.do_transaction()\n File \"/usr/lib/python2.7/site-packages/dnf/base.py\", line 591, in do_transaction\n self._trans_error_summary(errstring))\ndnf.exceptions.Error: <exception str() failed>\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 0}
我不明白什么是一个问题。
权限owner和SElinux属性是相同的。
我试图将麻烦的rpm转移到与工作(/ mnt/temp/Inbox/Test /)相同的文件系统,但没有成功。
当您尝试手动安装软件包时会发生什么? – kfreezy
非常感谢!我试图安装,但没有尝试完成! Dnf返回包冲突。但在Cyrilic语言错误。当我将LANG改为C env LANG = C ansible-playbook ...'ansible return correct error。 –