From efa49d745bc2ea63eac201b72596b2e9b718dd71 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Thu, 1 Aug 2024 10:37:59 -0700 Subject: [PATCH] [stable-2.14] tests: use keyserver with keyid while using apt_key (#83694) (#83704) (cherry picked from commit 3daf01e270137ba37387df3ccd275ff1f4e873f0) Signed-off-by: Abhijeet Kasurde Co-authored-by: Abhijeet Kasurde --- .../targets/apt_repository/tasks/apt.yml | 25 +++++++++++++++---- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/test/integration/targets/apt_repository/tasks/apt.yml b/test/integration/targets/apt_repository/tasks/apt.yml index 9c15e64765f..ba72f73cb24 100644 --- a/test/integration/targets/apt_repository/tasks/apt.yml +++ b/test/integration/targets/apt_repository/tasks/apt.yml @@ -62,7 +62,10 @@ - 'cache_before.stat.mtime != cache_after.stat.mtime' - name: 'ensure ppa key is installed (expect: pass)' - apt_key: id='{{test_ppa_key}}' state=present + apt_key: + id: '{{test_ppa_key}}' + state: present + keyserver: keyserver.ubuntu.com # # TEST: apt_repository: repo= update_cache=no @@ -93,7 +96,10 @@ - 'cache_before.stat.mtime == cache_after.stat.mtime' - name: 'ensure ppa key is installed (expect: pass)' - apt_key: id='{{test_ppa_key}}' state=present + apt_key: + id: '{{test_ppa_key}}' + state: present + keyserver: keyserver.ubuntu.com # # TEST: apt_repository: repo= update_cache=yes @@ -124,7 +130,10 @@ - 'cache_before.stat.mtime != cache_after.stat.mtime' - name: 'ensure ppa key is installed (expect: pass)' - apt_key: id='{{test_ppa_key}}' state=present + apt_key: + id: '{{test_ppa_key}}' + state: present + keyserver: keyserver.ubuntu.com # # TEST: apt_repository: repo= @@ -136,7 +145,10 @@ register: cache_before - name: ensure ppa key is present before adding repo that requires authentication - apt_key: keyserver=keyserver.ubuntu.com id='{{test_ppa_key}}' state=present + apt_key: + id: '{{test_ppa_key}}' + state: present + keyserver: keyserver.ubuntu.com - name: 'name= (expect: pass)' apt_repository: repo='{{test_ppa_spec}}' state=present @@ -181,7 +193,10 @@ register: cache_before - name: ensure ppa key is present before adding repo that requires authentication - apt_key: keyserver=keyserver.ubuntu.com id='{{test_ppa_key}}' state=present + apt_key: + id: '{{test_ppa_key}}' + state: present + keyserver: keyserver.ubuntu.com - name: 'name= filename= (expect: pass)' apt_repository: repo='{{test_ppa_spec}}' filename='{{test_ppa_filename}}' state=present