Hello,
I've ansible control node(CentOS 7) which is used to scp build image to target server(FreeBSD 11.04). It was just working fine last week. However, today I'd tried to run playbook, it got failed with below error message.
ansible-playbook -i zsdev-hosts Scp_build.yml --extra-vars build_version=<file-to-be-scp>
fatal: [zsdev-nrt-smca2]: FAILED! => {
"ansible_facts": {},
"changed": false,
"failed_modules": {
"setup": {
"failed": true,
"module_stderr": "Shared connection to X.X.X.X closed.\r\n",
"module_stdout": "sudo: (null): option \"passprompt_override\" does not take a value\r\r\nsudo: error initializing audit plugin sudoers_audit\r\r\n",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1
}
},
"msg": "The following modules failed to execute: setup\n"
}
Scp_build.yml playbook
===============
---
- name: Build Transfer to remote machines
hosts: zsdev
tasks:
- name: Start build Transfer to respective server
shell:
"sh /sc/build/copy_build_remote.sh {{ build_version }}"
...
zsdev-hosts Inventory file:
=================
[zsdev]
zsdev-nrt-smca2 ansible_host=X.X.X.X
[zsdev:vars]
ansible_ssh_extra_args='-o StrictHostKeyChecking=no'
ansible_python_interpreter = '/usr/local/bin/python'
ansible_user = zsroot
ansible_ssh_pass = 'somepassword'
ansible_port = 3223
gathering = none
ansible_connection = ssh
ansible_become = True
ansible_become_pass = 'somepassword'
ansible --version
ansible 2.9.21
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/maltif/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, Jun 20 2019, 20:27:34) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
I'd tried to search, couldn't find anything, can someone please help me on this, any inputs are appreciated.
Regards,
Altif