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
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/00322c30-b384-4bd0-acf9-7febc5a61563%40googlegroups.com.