toozej / ansible

Ansible
GNU General Public License v3.0
1 stars 0 forks source link

importing signing key for MariaDB on debian/ubuntu continuously fails #100

Closed toozej closed 5 years ago

toozej commented 6 years ago

Grabbed signing keys and repos from official https://downloads.mariadb.org/mariadb/repositories/#mirror=osuosl&version=10.3 page but they signing key continually fail to import correctly.

TASK [../roles/db-server : apt | ensure MariaDB signing key present] ***********

task path: /var/jenkins_home/workspace/ansible_master-YARXIAEUBJJ3QTK3GWZUZPDQIMHQJT422JT3UAHBUTI2MBOQ53CA@3/roles/db-server/tasks/mariadb-Debian.yml:11

fatal: [localhost]: FAILED! => {"changed": false, "cmd": "/usr/bin/apt-key adv --keyserver keyserver.ubuntu.com --recv F1656F24C74CD1D8", "msg": "Error fetching key F1656F24C74CD1D8 from keyserver: keyserver.ubuntu.com", "rc": 2, "stderr": "Warning: apt-key output should not be parsed (stdout is not a terminal)\ngpg: cannot open '/dev/tty': No such device or address\n", "stderr_lines": ["Warning: apt-key output should not be parsed (stdout is not a terminal)", "gpg: cannot open '/dev/tty': No such device or address"], "stdout": "Executing: /tmp/apt-key-gpghome.9GNA3OfzHo/gpg.1.sh --keyserver keyserver.ubuntu.com --recv F1656F24C74CD1D8\n", "stdout_lines": ["Executing: /tmp/apt-key-gpghome.9GNA3OfzHo/gpg.1.sh --keyserver keyserver.ubuntu.com --recv F1656F24C74CD1D8"]}
toozej commented 6 years ago

Tried all kinds of versions of writing the same code to no avail. Latest try is using versions from https://github.com/frappe/bench/tree/master/playbooks/roles/mariadb/tasks

toozej commented 5 years ago

fixed several commits ago. wouldn't be surprised if this broke again in the future, but at least I've got a firmer grasp of how this all works along with MariaDB's download page now.