Python не может найти вашу установку numpy, возможно, вы можете попробовать с помощью apt-get install python-numpy?
Это будет работать
---
- hosts: all
become: yes
tasks:
- name: Check existence of /tmp/hosted
shell: test -e /tmp/hosted
register: hostedfile
ignore_errors: yes
- name: Ensure NTP (for time synchronization) is installed.
yum: name=ntp state=present
when: hostedfile.rc != 0