rossmcdonald / telegraf

Ansible role for installing, configuring, and maintaining Telegraf
138 stars 85 forks source link

apt-key output should not be parsed (stdout is not a terminal) #44

Open carlo4002 opened 5 years ago

carlo4002 commented 5 years ago

Hello

In this line

line19

adding the key for installing telegraf, did you guys get the next error ? FAILED! => {"changed": false, "cmd": "/usr/bin/apt-key adv --keyserver https://repos.influxdata.com/influxdb.key --recv None", "msg": "Error fetching key None from keyserver: https://repos.influxdata.com/influxdb.key", "rc": 2, "stderr": "Warning: apt-key output should not be parsed (stdout is not a terminal)\ngpg: \"None\" not a key ID: skipping\n", "stderr_lines": ["Warning: apt-key output should not be parsed (stdout is not a terminal)", "gpg: \"None\" not a key ID: skipping"], "stdout": "Executing: /tmp/apt-key-gpghome.yw4v6KFcxF/gpg.1.sh --keyserver https://repos.influxdata.com/influxdb.key --recv None\n", "stdout_lines": ["Executing: /tmp/apt-key-gpghome.yw4v6KFcxF/gpg.1.sh --keyserver https://repos.influxdata.com/influxdb.key --recv None"]}

carlo4002 commented 5 years ago

I got to use the option

apt_key: data: | -----BEGIN PGP PUBLIC KEY BLOCK-----

Which is pretty disgusting :-1: