Failed to easy_install dnspython to use dig

Team, my playbook works fine on my MacBook but now am running it with Jenkins on Linux instance and it’s throwing me this error. Any hint please?

have my playbook as below and i tried with become: yes as well but no luck. how to get around this ?

      - easy_install:
          name: dnspython
          state: present
        #become: yes

      - name: Validate DNS record lookup for {{ kubeapi_server }}
        debug: msg="{{ lookup('dig', '{{ kubeapi_server }}' )}}"
        vars:
          variable: "{{ lookup('dig', '{{ kubeapi_server }}' )}}"
        failed_when: not variable
Output:

16:18:07 TASK [team-deploy-validation : easy_install] *********************************
16:18:07 [1;30mtask path: /home/testuser/jenkins/workspace/run_ansible_playbook/k8s/baremetal/roles/team-deploy-validation/tasks/main.yml:9[0m
16:18:07 Friday 11 October 2019 23:18:07 +0000 (0:00:00.029) 0:00:02.902 ********
16:18:07 [0;34mUsing module file /usr/local/lib/python2.7/dist-packages/ansible/modules/packaging/language/easy_install.py[0m
16:18:07 [0;34mPipelining is enabled.[0m
16:18:07 [0;34m<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: testuser[0m
16:18:07 [0;34m<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'[0m
16:18:07 [0;31mThe full traceback is:[0m
16:18:07 [0;31mWARNING: The below traceback may

```fatal: [localhost]: FAILED! => {
16:10:06 "changed": false,
16:10:06 "module_stderr": "/bin/sh: 1: sudo: not found\n",
16:10:06 "module_stdout": "",
16:10:06 "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
16:10:06 "rc": 127
16:10:06 }
16:10:06 ```

What version of linux ? Sudo not found implies that comment is being ignored. Can you delete the become line ans re run. Im assuming the target has pip installed and can reach the internet