当我尝试使用Ansible 的 Composer 模块并将以下任务粘贴到我的 playbook.yml 文件中时,出现错误。
剧本.yml
- name: Composer Install Site Dependencies
composer: command=install working_dir=/var/www/html
错误:
ERROR: composer is not a legal parameter in an Ansible task or handler
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
经过一番调查,我在命令行上运行了“anisble-doc --list”以查看可用的模块,而“composer”未列出。我正在运行 Ansible 1.5.4 版,我必须单独添加它吗?