Преглед на файлове

Change PHP package names on Xenial and Stretch

an improved version of PR #696
Sven Neuhaus преди 7 години
родител
ревизия
795f8d3b40
променени са 4 файла, в които са добавени 57 реда и са изтрити 4 реда
  1. 13
    1
      roles/mailserver/tasks/z-push.yml
  2. 12
    1
      roles/news/tasks/selfoss.yml
  3. 14
    1
      roles/readlater/tasks/wallabag.yml
  4. 18
    1
      roles/webmail/tasks/roundcube.yml

+ 13
- 1
roles/mailserver/tasks/z-push.yml Целия файл

1
-- name: Install required packages for z-push
1
+- name: Install required packages for z-push (PHP5 variant)
2
   apt: pkg={{ item }} state=installed
2
   apt: pkg={{ item }} state=installed
3
   with_items:
3
   with_items:
4
     - php-soap
4
     - php-soap
5
     - php5
5
     - php5
6
     - php5-cli
6
     - php5-cli
7
     - php5-imap
7
     - php5-imap
8
+  when: (ansible_distribution_release != "xenial" and ansible_distribution_release != "stretch")
9
+  tags:
10
+    - dependencies
11
+
12
+- name: Install required packages for z-push
13
+  apt: pkg={{ item }} state=installed
14
+  with_items:
15
+    - php-soap
16
+    - php
17
+    - php-cli
18
+    - php-imap
19
+  when: (ansible_distribution_release == "xenial" or ansible_distribution_release == "stretch")
8
   tags:
20
   tags:
9
     - dependencies
21
     - dependencies
10
 
22
 

+ 12
- 1
roles/news/tasks/selfoss.yml Целия файл

18
     - data/sqlite
18
     - data/sqlite
19
     - public
19
     - public
20
 
20
 
21
-- name: Install selfoss dependencies
21
+- name: Install selfoss dependencies (PHP5 variant)
22
   apt: pkg={{ item }} state=present
22
   apt: pkg={{ item }} state=present
23
   with_items:
23
   with_items:
24
     - php5
24
     - php5
25
     - php5-pgsql
25
     - php5-pgsql
26
     - php5-gd
26
     - php5-gd
27
+  when: (ansible_distribution_release != "xenial" and ansible_distribution_release != "stretch")
28
+  tags:
29
+    - dependencies
30
+
31
+- name: Install selfoss dependencies
32
+  apt: pkg={{ item }} state=present
33
+  with_items:
34
+    - php
35
+    - php-pgsql
36
+    - php-gd
37
+  when: (ansible_distribution_release == "xenial" or ansible_distribution_release == "stretch")
27
   tags:
38
   tags:
28
     - dependencies
39
     - dependencies
29
 
40
 

+ 14
- 1
roles/readlater/tasks/wallabag.yml Целия файл

12
   file: name=/var/www/wallabag/install state=absent
12
   file: name=/var/www/wallabag/install state=absent
13
   when: wallabag_config.stat.exists == True
13
   when: wallabag_config.stat.exists == True
14
 
14
 
15
-- name: Install wallabag dependencies
15
+- name: Install wallabag dependencies (PHP5 variant)
16
   apt: pkg={{ item }} state=present
16
   apt: pkg={{ item }} state=present
17
   with_items:
17
   with_items:
18
     - php5
18
     - php5
20
     - php5-mcrypt
20
     - php5-mcrypt
21
     - php5-pgsql
21
     - php5-pgsql
22
     - php5-tidy
22
     - php5-tidy
23
+  when: (ansible_distribution_release != "xenial" and ansible_distribution_release != "stretch")
24
+  tags:
25
+    - dependencies
26
+
27
+- name: Install wallabag dependencies
28
+  apt: pkg={{ item }} state=present
29
+  with_items:
30
+    - php
31
+    - php-curl
32
+    - php-mcrypt
33
+    - php-pgsql
34
+    - php-tidy
35
+  when: (ansible_distribution_release == "xenial" or ansible_distribution_release == "stretch")
23
   tags:
36
   tags:
24
     - dependencies
37
     - dependencies
25
 
38
 

+ 18
- 1
roles/webmail/tasks/roundcube.yml Целия файл

2
   stat: path=/var/www/roundcube/config.inc.php
2
   stat: path=/var/www/roundcube/config.inc.php
3
   register: roundcube_config
3
   register: roundcube_config
4
 
4
 
5
-- name: Install roundcube dependencies
5
+- name: Install roundcube dependencies (PHP5 variant)
6
   apt: pkg={{ item }} state=present
6
   apt: pkg={{ item }} state=present
7
   with_items:
7
   with_items:
8
     - php5
8
     - php5
14
     - php5-curl
14
     - php5-curl
15
     - aspell
15
     - aspell
16
     - aspell-en
16
     - aspell-en
17
+  when: (ansible_distribution_release != "xenial" and ansible_distribution_release != "stretch")
18
+  tags:
19
+    - dependencies
20
+
21
+- name: Install roundcube dependencies
22
+  apt: pkg={{ item }} state=present
23
+  with_items:
24
+    - php
25
+    - php-sqlite
26
+    - php-mcrypt
27
+    - php-gd
28
+    - php-pspell
29
+    - php-intl
30
+    - php-curl
31
+    - aspell
32
+    - aspell-en
33
+  when: (ansible_distribution_release == "xenial" or ansible_distribution_release == "stretch")
17
   tags:
34
   tags:
18
     - dependencies
35
     - dependencies
19
 
36
 

Loading…
Отказ
Запис