Skip to content

get_url ansible function fails with ansible < 2.16.0 and some python versions #57

@william-stearns

Description

@william-stearns

The error returned from the two current uses of get_url (both in install_pre.yml) is:

fatal: [10.0.0.63]: FAILED! => {"changed": false, "dest": "/etc/apt/trusted.gpg.d/docker-ubuntu.asc", "elapsed": 0, "msg": "An unknown error occurred: HTTPSConnection.__init__() got an unexpected keyword argument 'cert_file'", "url": "https://download.docker.com/linux/ubuntu/gpg"}

Since not every environment will have the option of upgrading ansible to version 2.16.0 or higher, we can work around it by replacing the ansible get_url calls with shell calls to curl.

Patch to follow.

Metadata

Metadata

Labels

bugExisting functionality is broken, incorrect, or not behaving as intended

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions