Skip to content

Resolve "use inside virtual env"

David Blaisonneau requested to merge 1-use-inside-virtual-env-2 into master

Closes #1 (closed)

  • Add a CI job to prepare virtual env
    • create virtual env
    • add a wrapper to be called as a ansible_python_interpreter
  • Add local_ansible_python_interpreter
    • set default value to auto
    • use it for tasks that will be run with delegate_to and need to be run locally without venv
  • due to usage of facts in path of venv wrapper we need to:
    • disable gather_facts
    • get minimum facts without wrapper in pretasks
    • then load all facts
Edited by David Blaisonneau

Merge request reports

Loading