ckan/ckan-packaging

Xenial issue

Closed this issue · 0 comments

When building the xenial package im receiving following error:

fatal: [xenial]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 127.0.0.1 closed.\r\n", "module_stdout": "/bin/sh: 1: /usr/bin/python: not found\r\n", "msg": "MODULE FAILURE", "rc": 127}

i've managed to find a fix/workaround with adding the following line to package.yml:

gather_facts: False
pre_tasks:
    - raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
    - setup: # aka gather_facts```