此剧在容器中运行:
- name: install somne files
copy: src={{lookup('ENV','SOME_PATH')}}/abc/def/ dest=/usr/java/latest/jre/lib/security owner=root group=root force=yes mode=0664
在运行Docker version 18.03.1-ce, build 9ee9f40
的Jenkins(在EC2实例上运行)上,它失败,并显示以下信息:
00:11:10.254 fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unable to find Java files at /usr/java/latest/jre/lib/security"}
在运行Docker version 18.09.0, build 4d60db4
的Mac上,这很好。
为什么会发生这种情况?