apt: use the GPG version of the key for Debian 8-9
This commit is contained in:
parent
ca5d9d5202
commit
db63902206
|
@ -27,6 +27,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
|
|||
* add-vm.sh: allow VM name max length > 20
|
||||
* apache : fix goaway pattern for bad bots
|
||||
* apache : rename MaxRequestsPerChild to MaxConnectionsPerChild (new name)
|
||||
* apt: use the GPG version of the key for Debian 8-9
|
||||
* bind: Update role for Buster, Bullseye and Bookworm support
|
||||
* dovecot: Munin plugin conf path is now `/etc/munin/plugin-conf.d/zzz-dovecot` (instead of `z-evolinux-dovecot`)
|
||||
* evocheck: upstream release 23.11.1
|
||||
|
|
|
@ -24,10 +24,16 @@
|
|||
owner: root
|
||||
group: root
|
||||
|
||||
- name: Set Evolix GPG key format to ASC
|
||||
set_fact:
|
||||
apt_evolix_public_key: "{{ apt_keyring_dir }}/pub_evolix.asc"
|
||||
tags:
|
||||
- apt
|
||||
|
||||
- name: Add Evolix GPG key
|
||||
ansible.builtin.copy:
|
||||
src: pub_evolix.asc
|
||||
dest: "{{ apt_keyring_dir }}/pub_evolix.asc"
|
||||
dest: "{{ apt_evolix_public_key }}"
|
||||
force: true
|
||||
mode: "0644"
|
||||
owner: root
|
||||
|
|
|
@ -24,10 +24,26 @@
|
|||
owner: root
|
||||
group: root
|
||||
|
||||
- name: Set Evolix GPG key format to GPG (Debian < 9)
|
||||
set_fact:
|
||||
apt_evolix_public_key: "pub_evolix.gpg"
|
||||
when:
|
||||
- ansible_distribution_major_version is version('9', '<')
|
||||
tags:
|
||||
- apt
|
||||
|
||||
- name: Set Evolix GPG key format to ASC (Debian >= 9)
|
||||
set_fact:
|
||||
apt_evolix_public_key: "pub_evolix.asc"
|
||||
when:
|
||||
- ansible_distribution_major_version is version('9', '>=')
|
||||
tags:
|
||||
- apt
|
||||
|
||||
- name: Add Evolix GPG key
|
||||
ansible.builtin.copy:
|
||||
src: pub_evolix.asc
|
||||
dest: "{{ apt_keyring_dir }}/pub_evolix.asc"
|
||||
src: "{{ apt_evolix_public_key }}"
|
||||
dest: "{{ apt_keyring_dir }}/{{ apt_evolix_public_key }}"
|
||||
force: true
|
||||
mode: "0644"
|
||||
owner: root
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
deb [signed-by={{ apt_keyring_dir }}/pub_evolix.asc] http://pub.evolix.org/evolix {{ ansible_distribution_release }} main
|
||||
deb [signed-by={{ apt_keyring_dir }}/{{ apt_evolix_public_key }}] http://pub.evolix.org/evolix {{ ansible_distribution_release }} main
|
||||
|
|
Loading…
Reference in a new issue