wtsi-hgi/hgi-systems

apt module can't get iRODS deb package from FTP

Closed this issue · 2 comments

Regardless of the ftp_proxy setting, it keeps giving me this error:

hgi-cordon-cookie-monster | FAILED! => {
    "changed": false,
    "failed": true,
    "invocation": {
        "module_args": {
            "cache_valid_time": null,
            "deb": "ftp://ftp.renci.org/pub/irods/releases/4.1.9/ubuntu14/irods-runtime-4.1.9-ubuntu14-x86_64.deb",
            "default_release": null,
            "dpkg_options": "force-confdef,force-confold",
            "force": false,
            "install_recommends": null,
            "package": null,
            "purge": false,
            "state": "present",
            "update_cache": false,
            "upgrade": null
        },
        "module_name": "apt"
    },
    "msg": "Unable to install package: E:Could not open file ftp://ftp.renci.org/pub/irods/releases/4.1.9/ubuntu14/irods-runtime-4.1.9-ubuntu14-x86_64.deb - open (2: No such file or directory), E:Unable to determine file size for fd -1 - fstat (9: Bad file descriptor), E:Read error - read (9: Bad file descriptor)"
}

I can wget this from the host, providing the ftp_proxy environment variable is set. The documentation states that "If :// in the path, ansible will attempt to download deb before installing."

Hmm... The documentation also says "(Version added 2.1)" immediately after the "://" note, but it's unclear whether this applies to that. Either way, currently we have 2.0.1.0 installed, so maybe this is the reason.

Upgrading to Ansible 2.1.1.0 fixed the problem :) Thanks