Kaynağa Gözat

Use yunohost repository for rspamd package on ARMv7

The stock rspamd package provided by Raspbian (jessie) is at version 0.6.10.  The rspamd repository doesn't offer binaries for the armhf architecture (e.g., Raspberry Pi 3) in order to get a more recent package.  Instead, use the yunohost repository for rspamd package (currently at 1.3.5) on armhf.
Sven Neuhaus 7 yıl önce
ebeveyn
işleme
6064b93c85
1 değiştirilmiş dosya ile 14 ekleme ve 0 silme
  1. 14
    0
      roles/mailserver/tasks/rspamd.yml

+ 14
- 0
roles/mailserver/tasks/rspamd.yml Dosyayı Görüntüle

@@ -3,11 +3,25 @@
3 3
 
4 4
 - name: Ensure repository key for Rspamd is in place
5 5
   apt_key: url=https://rspamd.com/apt-stable/gpg.key state=present
6
+  when: ansible_architecture != "armv7l"
7
+  tags:
8
+    - dependencies
9
+
10
+- name: Ensure yunohost repository key for Rspamd is in place for ARM
11
+  apt_key: url=http://repo.yunohost.org/debian/yunohost.asc state=present
12
+  when: ansible_architecture == "armv7l"
6 13
   tags:
7 14
     - dependencies
8 15
 
9 16
 - name: Add Rspamd repository
10 17
   apt_repository: repo="deb https://rspamd.com/apt-stable/ {{ ansible_distribution_release }} main"
18
+  when: ansible_architecture != "armv7l"
19
+  tags:
20
+    - dependencies
21
+
22
+- name: Add yunohost Rspamd repository for ARM
23
+  apt_repository: repo="deb http://repo.yunohost.org/debian {{ ansible_distribution_release }} stable"
24
+  when: ansible_architecture == "armv7l"
11 25
   tags:
12 26
     - dependencies
13 27
 

Loading…
İptal
Kaydet