Skip to content
This repository was archived by the owner on Oct 30, 2018. It is now read-only.
This repository was archived by the owner on Oct 30, 2018. It is now read-only.

apt_key: key does not seem to have been added. While the ID looks correct. #5119

@dj-wasabi

Description

@dj-wasabi
ISSUE TYPE
  • Bug Report
COMPONENT NAME

apt_key

ANSIBLE VERSION
ansible 2.1.2.0
  config file = /git/ansible/vagrant/ansible.cfg
  configured module search path = Default w/o overrides
CONFIGURATION
OS / ENVIRONMENT

Executing Ansible on CentOS, running playbook against Debian.

SUMMARY
STEPS TO REPRODUCE
- name: "Debian | Install gpg key"
  apt_key: id=E709712C
           url=http://repo.zabbix.com/zabbix-official-repo.key
           state=present
EXPECTED RESULTS

Key is added.

ACTUAL RESULTS
fatal: [ansible]: FAILED! => {"changed": false, "failed": true, "id": "E709712C", "invocation": {"module_args": {"data": null, "file": null, "id": "E709712C", "key": null, "keyring": null, "keyserver": null, "state": "present", "url": "http://repo.zabbix.com/zabbix-official-repo.key", "validate_certs": true}, "module_name": "apt_key"}, "msg": "key does not seem to have been added"}

Strange thing, when using the id 79EA5ED4 it works?
(Or am I missing something?)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions