インターネットに接続されていないコンピュータが内部ネットワークにあり、関連rpmパッケージをローカルのdnfリポジトリにコピーしました。私は、別のコンピュータにプログラムをインストールするためにanipalのDNFモジュールを取得しようとしていますが、python2-dnfがインストールされていないことを示すエラーメッセージが表示されます。しかし、プログラムをインストールしようとすると、すでにインストールされています。誰もが何がうまくいかないか考えている?[Fedora 24] DNFモジュールpython2-dnfが必要ですが既にインストールされています
以下にエラーコードを記載しました。
背景:#ansibleすべての-m DNF -a "名前= vimの状態=存在"
192.168.10.10 | FAILED! => {
"changed": false,
"failed": true
, "msg": "python2-dnf is not installed, but it is required for the Ansible dnf module."
}
[ルート
Ansible Control machine: Fedora 24 4.5.5-300.fc24.x86_64 GNU/LINUX
Ansible Client machine: Fedora 24 4.5.5-300.fc24.x86_64 GNU/LINUX
yum/dnf local repository: Centos 7 3.10.0-327.28.3.el7.x86_64 GNU/LINUX
[localhostのansible @ルート] @localhost ansible]#yum install python2-dnf
Yum command has been deprecated, redirecting to '/usr/bin/dnf install python2-dnf'.
See 'man dnf' and 'man yum2dnf' for more information.
To transfer transaction metadata from yum to DNF, run:
'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate'
Last metadata expiration check: 0:12:08 ago on Tue Oct 18 04:57:11 2016.
Package python2-dnf-1.1.9-2.fc24.noarch is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
制御マシンではなくターゲットホストでpython2-dnfが必要であることを伝えています –