diff --git a/lib/ansible/modules/apt_key.py b/lib/ansible/modules/apt_key.py index 4c4c3efb852..f4a4126dcbd 100644 --- a/lib/ansible/modules/apt_key.py +++ b/lib/ansible/modules/apt_key.py @@ -90,8 +90,8 @@ EXAMPLES = ''' - name: somerepo | apt source ansible.builtin.apt_repository: - repo: "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/somerepo.asc] https://download.example.com/linux/ubuntu {{ ansible_distribution_release }} stable" - state: present + repo: "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/myrepo.asc] https://download.example.com/linux/ubuntu {{ ansible_distribution_release }} stable" + state: present - name: Add an apt key by id from a keyserver ansible.builtin.apt_key: