-m apt_key -a 'url=https://apt.releases.hashicorp.com'
Получаю:
"msg": "Failed to download key at https://apt.releases.hashicorp.com: Request failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)>"
Решение (Добавить SSL_CERT_FILE): - name: Add consul apt-key apt_key: url: https://apt.releases.hashicorp.com/gpg state: present environment: SSL_CERT_FILE: /etc/ssl/certs/ca-certificates.crt
Подробности для упоротых - https://github.com/ansible/ansible/issues/33580#issuecomment-832856608
Обсуждают сегодня