Skip to content

Commit 65aa596

Browse files
authored
add ldap module (#1261)
1 parent b60bda0 commit 65aa596

File tree

2 files changed

+7
-29
lines changed

2 files changed

+7
-29
lines changed

src/roles/apache-php/tasks/php.yml

+5-29
Original file line numberDiff line numberDiff line change
@@ -35,37 +35,12 @@
3535
- name: Get IUS repository
3636
include: ius.yml
3737

38-
- name: Ensure PHP 5.6 packages removed
39-
yum:
38+
- name: Ensure PHP 5.x packages removed
39+
package:
4040
lock_timeout: 180 # wait up to 3 minutes for a lock ansible/ansible#57189
41-
name: "{{item}}"
41+
name: "php5*"
4242
state: absent
43-
with_items:
44-
- php56u
45-
- php56u-cli
46-
- php56u-common
47-
- php56u-devel
48-
- php56u-gd
49-
- php56u-pecl-memcache
50-
- php56u-pspell
51-
- php56u-snmp
52-
- php56u-xml
53-
- php56u-xmlrpc
54-
- php56u-mysqlnd
55-
- php56u-pdo
56-
- php56u-odbc
57-
- php56u-pear
58-
- php56u-pecl-jsonc
59-
- php56u-process
60-
- php56u-bcmath
61-
- php56u-intl
62-
- php56u-opcache
63-
- php56u-soap
64-
- php56u-mbstring
65-
- php56u-mcrypt
66-
- php56u-mssql
67-
68-
43+
6944
# Check if the desired version of PHP is installed. If it is not, ensure any
7045
# other versions of PHP are not installed
7146
- name: "Check if {{ php_ius_version}} package is installed"
@@ -110,6 +85,7 @@
11085
- "{{ php_ius_version }}-opcache"
11186
- "{{ php_ius_version }}-soap"
11287
- "{{ php_ius_version }}-mbstring"
88+
- "{{ php_ius_version }}-ldap"
11389

11490
# php56u has memcache and memcached; php7Xu only has memcached
11591
# legacy Meza used php56u-pecl-memcache

src/roles/apache-php/templates/php.ini.j2

+2
Original file line numberDiff line numberDiff line change
@@ -1815,6 +1815,8 @@ soap.wsdl_cache_limit = 5
18151815
;sysvshm.init_mem = 10000
18161816

18171817
[ldap]
1818+
; Enable ldap extension module
1819+
extension=ldap.so
18181820
; Sets the maximum number of open links or -1 for unlimited.
18191821
ldap.max_links = -1
18201822

0 commit comments

Comments
 (0)