Commit 9bb4227a authored by Pietsch, Martin's avatar Pietsch, Martin

remove hardcoded execution path for python

parent 9dd2575a
......@@ -9,7 +9,7 @@
add_host:
name: "{{ inventory_hostname }}_{{ item.name | upper() }}"
ansible_ssh_host: "{{ item.name }}@{{ansible_ssh_host}}"
ansible_python_interpreter: "/usr/local/bin/python3"
ansible_python_interpreter: "{{ ansible_python.executable }}"
ansible_connection: "sshjail"
when: (item.container | default(False)) == True
with_items: "{{ function_packages }}"
......@@ -19,7 +19,7 @@
- name: add container to inventory via jail connection
add_host:
name: "{{ inventory_hostname }}_{{ item.name | upper() }}"
ansible_python_interpreter: "/usr/local/bin/python3"
ansible_python_interpreter: "{{ ansible_python.executable }}"
ansible_connection: "jail"
ansible_host: "{{ item.name }}"
when: (item.container | default(False)) == True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment