Error on installing redis server

Hi

I was trying to install redis-server on Machine running ubuntu 18.04. I run the following command

cchq echis ap deploy_redis.yml

and getting the following error on task ruby_install : Add ruby ppa

TASK [ruby_install : Add ruby ppa] ************************************************************************************************
fatal: [172.19.4.42]: FAILED! => {"changed": false, "cmd": "apt-key adv --recv-keys --no-tty --keyserver hkp://keyserver.ubuntu.com:80 80F70E11F0F0D5F10CB20E62F5DA5F09C3173AA6", "msg": "Warning: apt-key output should not be parsed (stdout is not a terminal)\ngpg: keyserver receive failed: Invalid argument", "rc": 2, "stderr": "Warning: apt-key output should not be parsed (stdout is not a terminal)\ngpg: keyserver receive failed: Invalid argument\n", "stderr_lines": ["Warning: apt-key output should not be parsed (stdout is not a terminal)", "gpg: keyserver receive failed: Invalid argument"], "stdout": "Executing: /tmp/apt-key-gpghome.kb0YSxGPI1/gpg.1.sh --recv-keys --no-tty --keyserver hkp://keyserver.ubuntu.com:80 80F70E11F0F0D5F10CB20E62F5DA5F09C3173AA6\n", "stdout_lines": ["Executing: /tmp/apt-key-gpghome.kb0YSxGPI1/gpg.1.sh --recv-keys --no-tty --keyserver hkp://keyserver.ubuntu.com:80 80F70E11F0F0D5F10CB20E62F5DA5F09C3173AA6"]}

Looks like this ansible task is failing. I'm not certain why that is. You might try running that manually on the machine to see if you get more information:

sudo add-apt-repository ppa:brightbox/ruby-ng
1 Like

Thanks Ethan,

It's working!