add-{mon,osd}: run raw install python tasks

If the new mon/osd node doesn't have python installed then we need to
execute the tasks from raw_install_python.yml.

Closes: #4368

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
pull/4122/head
Dimitri Savineau 2019-11-04 09:04:48 -05:00 committed by Guillaume Abrioux
parent ece46d33be
commit 34b03d1873
2 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,8 @@
delegate_facts_host: true
become: true
pre_tasks:
- import_tasks: "{{ playbook_dir }}/../raw_install_python.yml"
- name: gather facts
setup:
when: not delegate_facts_host | bool or inventory_hostname in groups.get(client_group_name, [])

View File

@ -26,6 +26,8 @@
delegate_facts_host: True
pre_tasks:
- import_tasks: "{{ playbook_dir }}/../raw_install_python.yml"
- name: gather facts
setup:
when: not delegate_facts_host | bool