Skip to content
Snippets Groups Projects

branding: Replace deprecated apt_key module with simple copy

Merged Thomas Schneider requested to merge th/branding-apt-key into master
1 file
+ 7
12
Compare changes
  • Side-by-side
  • Inline
+ 7
12
@@ -80,19 +80,14 @@
- branding
- tls
- name: install gpg to install the apt_key
apt:
name: gnupg
state: present
tags:
- branding
- repos
- name: ensure deployment of apt repository keys
apt_key:
data: "{{ lookup('file', item) }}"
state: present
with_items: "{{ branding_apt_keys }}"
copy:
src: "{{ item }}"
dest: "/etc/apt/trusted.gpg.d/{{ item|basename }}"
owner: root
group: root
mode: "0644"
loop: "{{ branding_apt_keys }}"
when: branding_apt_keys is defined
notify:
- update apt cache
Loading