summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/apt_key.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/modules/apt_key.py')
-rw-r--r--lib/ansible/modules/apt_key.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/modules/apt_key.py b/lib/ansible/modules/apt_key.py
index 67caf6da71..94b969030d 100644
--- a/lib/ansible/modules/apt_key.py
+++ b/lib/ansible/modules/apt_key.py
@@ -86,11 +86,11 @@ EXAMPLES = '''
- name: somerepo |no apt key
ansible.builtin.get_url:
url: https://download.example.com/linux/ubuntu/gpg
- dest: /etc/apt/trusted.gpg.d/somerepo.asc
+ dest: /etc/apt/keyrings/somerepo.asc
- name: somerepo | apt source
ansible.builtin.apt_repository:
- repo: "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/myrepo.asc] https://download.example.com/linux/ubuntu {{ ansible_distribution_release }} stable"
+ repo: "deb [arch=amd64 signed-by=/etc/apt/keyrings/myrepo.asc] https://download.example.com/linux/ubuntu {{ ansible_distribution_release }} stable"
state: present
- name: Add an apt key by id from a keyserver