Ansible取消归档两次提取文件

时间:2019-05-17 20:24:29

标签: docker ansible

我正在使用Ansible 2.4来配置Docker容器,但是当解压缩任务出现时,它会失败。 zip有很多嵌套目录。

任务示例:

   - name: Extract (V78208-01.zip)
     unarchive: src=/tmp/V78208-01.zip dest=/opt/V78208-01 copy=no

错误:

[127.0.0.1]: FAILED! => {
  "changed": false, 
  "dest": "/opt/V78208-01", 
  "extract_results": {
    "cmd": [
            "/usr/bin/unzip", 
            "-o", 
            "/tmp/V78208-01.zip", 
            "-d", 
            "/opt/V78208-01"
           ], 
  "err": "
checkdir error:  cannot create /opt/V78208-01/cd/Disk1/stage File exists unable to process cd/Disk1/stage/.
checkdir error:  cannot create /opt/V78208-01/cd/Disk1/stage/Actions/SpawnActions File exists unable to process cd/Disk1/stage/Actions/SpawnActions/.
checkdir error:  cannot create /opt/V78208-01/cd/Disk1/stage/Actions/SpawnActions/10.1.0.3.4/1 File exists unable to process cd/Disk1/stage/Actions/SpawnActions/10.1.0.3.4/1/.
checkdir error:  cannot create /opt/V78208-01/cd/Disk1/stage/Actions/clusterActions/10.1.0.2.0 File exists unable to process cd/Disk1/stage/Actions/clusterActions/10.1.0.2.0/.
checkdir error:  cannot create /opt/V78208-01/cd/Disk1/stage/Actions/clusterActions/10.1.0.2.0/1 File exists unable to process cd/Disk1/stage/Actions/clusterActions/10.1.0.2.0/1/.
checkdir error:  cannot create /opt/V78208-01/cd/Disk1/stage/Actions/dbActions/10.1.0.2.0 File exists
                 ...

已提取文件并创建了目录,但剧本无法完成。

我想念什么?

0 个答案:

没有答案