我正在尝试从Jenkins的Execute Shell部分运行ansible剧本,但是却遇到了错误。我已经安装了Ansible插件并在全局工具配置部分进行了配置。
+ ansible-playbook -i inventory installapache.yml -vvvv
/tmp/jenkins1596894985578146945.sh: line 4: ansible-playbook: command not found
Build step 'Execute shell' marked build as failure
Finished: FAILURE
我正在使用以下命令:
export ANSIBLE_FORCE_COLOR=true
cd /home/ec2-user
ansible-playbook -i hosts /home/ec2-user/installapache.yml -vvvv