From 161b116247862e48ed059d19eabbbbfb762dce62 Mon Sep 17 00:00:00 2001 From: ETNyx <2624462+ETNyx@users.noreply.github.com> Date: Thu, 29 Aug 2019 15:45:20 +0200 Subject: [PATCH 1/2] docs: Update apt_key.py add requirements of gpg ##### SUMMARY The module needs to have gpg installed, otherwise it will end up with error {"changed": false, "msg": "Failed to find required executable gpg in paths: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ##### ISSUE TYPE - Docs Pull Request +label: docsite_pr --- lib/ansible/modules/packaging/os/apt_key.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/modules/packaging/os/apt_key.py b/lib/ansible/modules/packaging/os/apt_key.py index b5af75f8a64a5f..c60ddb82f0b115 100644 --- a/lib/ansible/modules/packaging/os/apt_key.py +++ b/lib/ansible/modules/packaging/os/apt_key.py @@ -29,6 +29,8 @@ To generate a full-fingerprint imported key: C(apt-key adv --list-public-keys --with-fingerprint --with-colons)." - If you specify both the key id and the URL with C(state=present), the task can verify or add the key as needed. - Adding a new key requires an apt cache update (e.g. using the apt module's update_cache option) +requirements: + - gpg (in bin paths: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin) options: id: description: From efd44dd3c535fd547a14f184e909f45b5f0f8191 Mon Sep 17 00:00:00 2001 From: ETNyx <2624462+ETNyx@users.noreply.github.com> Date: Tue, 3 Sep 2019 17:12:58 +0200 Subject: [PATCH 2/2] Update lib/ansible/modules/packaging/os/apt_key.py Fix CI Co-Authored-By: John R Barker --- lib/ansible/modules/packaging/os/apt_key.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/packaging/os/apt_key.py b/lib/ansible/modules/packaging/os/apt_key.py index c60ddb82f0b115..425193a5a54215 100644 --- a/lib/ansible/modules/packaging/os/apt_key.py +++ b/lib/ansible/modules/packaging/os/apt_key.py @@ -30,7 +30,7 @@ - If you specify both the key id and the URL with C(state=present), the task can verify or add the key as needed. - Adding a new key requires an apt cache update (e.g. using the apt module's update_cache option) requirements: - - gpg (in bin paths: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin) + - gpg options: id: description: