我正在尝试通过 ansible 安装 phpunit,以便在 vagrant vm 上运行它,但是我在构建过程中不断收到错误消息:
通道“pear.phpunit.de”未初始化,使用“pear channel-discover pear.phpunit.de”初始化或pear config-set auto_discover 1未知通道“pear.phpunit.de/PHPUnit”中的“pear.phpunit.de” " 无效的包名/包文件 "pear.phpunit.de/PHPUnit" 安装失败
ansbile 配置看起来像:
- name: Install phpunit
command: pear channel-discover pear.phpunit.de
command: pear channel-discover pear.symfony-project.com
command: pear channel-discover components.ez.no
command: pear channel-discover pear.symfony.com
command: pear update-channels
command: pear upgrade-all
command: pear install pear.symfony.com/Yaml
command: pear install --alldeps pear.phpunit.de/PHPUnit
command: pear install --force --alldeps pear.phpunit.de/PHPUnit
有没有人设法通过ansible成功安装phpunit?