Hi,
I highly appreciate if anybody can help, please
############### playbook ##################
- hosts: dpie_prod
user: dpiesa
tasks: - name: install telnet
yum: pkg=telnet state=installed update_cache=true
command: sudo yum install telnet -y
become: yes
become_user: root
become_method: sudo
The above does not work and throws this error
TASK [install telnet] ****************************************************************************************************************************************
[WARNING]: Module invocation had junk after the JSON data: usage: sudo -e [-S] [-p prompt] [-u username|#uid] file …
fatal: [lind01.corp.acxiom.net]: FAILED! => {“changed”: false, “module_stderr”: “Shared connection to lind01.corp.acxiom.net closed.\r\n”, “module_stdout”: “sudo: illegal option `-n’\r\nusage: sudo -h | -K | -k | -L | -l | -V | -v\r\nusage: sudo [-bEHPS] [-p prompt] [-u username|#uid] [VAR=value]\r\n {-i | -s | }\r\nusage: sudo -e [-S] [-p prompt] [-u username|#uid] file …\r\n”, “msg”: “MODULE FAILURE”, “rc”: 1}
to retry, use: --limit @/home/dpiesa/playbooks/install_telnet.retry