有没有办法创建 ansible playbook 来找出目标主机上当前安装的 python 模块版本?我不想安装指定的版本,我只想知道它是否存在(示例响应module installed: version 12.03或module not installed)
module installed: version 12.03
module not installed
使用pipansible模块,我发现没有状态可以确保是否安装了某些东西,唯一的可能性是安装或删除
pip
python pip ansible
ansible ×1
pip ×1
python ×1