我是Ansible的新手,我尝试使用下面提到的ansible查询从Jenkin管道中过滤EC2实例。执行完管道后,出现以下错误。你能看看吗?
Ansible version: 2.4.0.0
File used: ec2.py and ec2.ini (From AWS code)
Query from Jenkin: sh "/usr/local/bin/ansible-playbook -i
inventory/ec2.py --limit \'tag_Name_ABC-web-
server:&tag_Type_local\'playbooks/Identify_ec2.yml"
Result: Unable to parse /var/lib/jenkins/workspace/winventory/ec2.py as
an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: Could not match supplied host pattern, ignoring: all
[WARNING]: provided hosts list is empty, the only localhost is available
[WARNING]: Could not match supplied host pattern, ignoring: tag_Name_ABC-
web-server
[WARNING]: Could not match supplied host pattern, ignoring:
tag_Type_local
Thanks in advance