AlmaLinuxにmuninをインストールするためPowerToolsリポジトリを使用可能にしようとしたところエラーが発生しました。
結論から書くと、
[ansibleのplaybook]
コマンドのPowerToolsのPとTが小文字でなければならなかった。
CentOS8では
結論から書くと、
yum config-manager --set-enabled powertoolsで使用可能にできました。
[ansibleのplaybook]
- name: enable PowerTools repository command: dnf config-manager --set-enabled PowerTools args: warn: false[ansibleのエラー]
fatal: [local_101]: FAILED! => {"changed": true, "cmd": ["dnf", "config-manager", "--set-enabled", "PowerTools"], "delta": "0:00:00.373923", "end": "2021-08-21 15:38:40.940575", "msg": "non-zero return code", "rc": 1, "start": "2021-08-21 15:38:40.566652", "stderr": "エラー: 修正用の一致する repo はありません: PowerTools.", "stderr_lines": ["エラー: 修正用の一致する repo はありません: PowerTools."], "stdout": "", "stdout_lines": []}[実行したコマンド]
# dnf config-manager --enable PowerTools エラー: 修正用の一致する repo はありません: PowerTools.[原因]
コマンドのPowerToolsのPとTが小文字でなければならなかった。
CentOS8では
yum config-manager --set-enabled powertools yum config-manager --set-enabled PowerToolsのどちらでもOKでしたが、AlmaLinuxでは小文字の方のコマンドでないといけなくなりました。