Force python3 install when provisioning OpenBSD

This commit is contained in:
Timo Makinen 2020-09-01 20:15:15 +00:00
parent 51aa0a709e
commit f60fb7f88c
2 changed files with 9 additions and 1 deletions

View file

@ -137,3 +137,10 @@
with_items: "{{ hostkeys.stdout.splitlines() }}"
delegate_to: localhost
when: inventory_hostname not in result.list_vms
- name: install python if required
command: "ssh {{ inventory_hostname }} '{{ virt_install_python_cmd }}'"
delegate_to: localhost
when:
- inventory_hostname not in result.list_vms
- virt_install_python_cmd is defined