Browse Source

wheezy: need librrd2-dev from backports to be compatible with dovecot

Sven Neuhaus 10 years ago
parent
commit
570bebac70
3 changed files with 19 additions and 2 deletions
  1. 14
    1
      roles/monitoring/tasks/collectd.yml
  2. 1
    1
      roles/news/tasks/selfoss.yml
  3. 4
    0
      roles/xmpp/tasks/prosody.yml

+ 14
- 1
roles/monitoring/tasks/collectd.yml View File

@@ -1,9 +1,22 @@
1
-- name: Install collectd dependencies
1
+- name: Add wheezy-backports to be compatible with Dovecot packages on Debian 7
2
+  apt_repository: repo='deb http://http.debian.net/debian wheezy-backports main'
3
+  when: ansible_distribution_release == 'wheezy'
4
+
5
+- name: Install collectd dependencies on wheezy from backports
6
+  apt: pkg={{ item }} state=installed default_release=wheezy-backports
7
+  with_items:
8
+    - libcurl4-openssl-dev
9
+    - librrd2-dev
10
+    - python-dev
11
+  when: ansible_distribution_release == 'wheezy'
12
+
13
+- name: Install collectd dependencies on distributions other than wheezy
2 14
   apt: pkg={{ item }} state=installed
3 15
   with_items:
4 16
     - libcurl4-openssl-dev
5 17
     - librrd2-dev
6 18
     - python-dev
19
+  when: ansible_distribution_release != 'wheezy'
7 20
 
8 21
 - name: Download collectd
9 22
   get_url: url=http://collectd.org/files/collectd-{{collectd_version}}.tar.gz

+ 1
- 1
roles/news/tasks/selfoss.yml View File

@@ -8,7 +8,7 @@
8 8
 
9 9
 # only data/cache, data/favicons, data/logs, data/thumbnails, data/sqlite public/ should be writeable by httpd
10 10
 - name: Set selfoss permission
11
-  action: file path=/var/www/selfoss/{{ item }} permission=775
11
+  action: file path=/var/www/selfoss/{{ item }} mode=0775
12 12
   with_items:
13 13
     - data/cache
14 14
     - data/favicons

+ 4
- 0
roles/xmpp/tasks/prosody.yml View File

@@ -8,6 +8,10 @@
8 8
 - name: Install Prosody from official repository
9 9
   apt: pkg=prosody update_cache=yes
10 10
 
11
+- name: Install lua-sec 0.5+
12
+  apt: pkg=lua-sec update_cache=yes
13
+  when: ansible_distribution_release == 'trusty' or ansible_distribution_release == 'jessie'
14
+
11 15
 - name: Add prosody user to ssl-cert group
12 16
   user: name=prosody groups=ssl-cert append=yes
13 17
 

Loading…
Cancel
Save