kayobe/ansible/roles/activate-virtualenv/tasks/main.yml
Mark Goddard a2cbe94b76 Improve bare metal compute node management
Adds these new commands:

kayobe baremetal compute inspect
kayobe baremetal compute manage
kayobe baremetal compute provide

These can be used to set the provision state of ironic nodes in the
baremetal-compute group.
2017-12-13 11:30:26 +00:00

11 lines
487 B
YAML

---
- name: Set a fact containing the current python interpreter
set_fact:
activate_virtualenv_current_python_interpreter: "{{ ansible_python_interpreter | default('/usr/bin/python') }}"
# Note that setting this via a play or task variable seems to not
# evaluate the Jinja variable reference, so we use set_fact.
- name: Update the Ansible python interpreter fact to point to the virtualenv
set_fact:
ansible_python_interpreter: "{{ activate_virtualenv_path }}/bin/python"