I have a bash script on each server that gathers some information and then stores that info in the commands variable. If I write ‘commands.stdout | to_nice_json’ to a file, everything is fine. If I use ‘commands.stdout_lines | to_nice_json’ it immediately reboots my Ansible server. If I remove the ‘to_nice_json’ it doesn’t have an issue. Should I file a bug? or do you have any other theories?
[root@server2 ~]# ssh -i bhadra.pem ec2-user@ec2-50-112-6-190.us-west-2.compute. amazonaws.com
The authenticity of host ‘ec2-50-112-6-190.us-west-2.compute.amazonaws.com (50.1 12.6.190)’ can’t be established.
ECDSA key fingerprint is 1f:1b:6b:13:d2:7a:b5:a4:4b:78:84:b7:98:05:ab:39.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘ec2-50-112-6-190.us-west-2.compute.amazonaws.com,50. 112.6.190’ (ECDSA) to the list of known hosts.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for ‘bhadra.pem’ are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: bhadra.pem
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).