-
Notifications
You must be signed in to change notification settings - Fork 494
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix php modules for alpine (workaround) part 2
Add missing part for php, php-apache and php-nginx images
- Loading branch information
Showing
27 changed files
with
594 additions
and
7 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
docker/php/alpine-3-php7/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
|
||
############################# | ||
# Workaround PHP configuration files | ||
# for alpine | ||
############################# | ||
|
||
- name: Get list of PHP5 configuration files | ||
command: "ls /etc/php5/conf.d/ |grep .ini" | ||
register: php5_ini | ||
when: ansible_distribution == 'Alpine' | ||
ignore_errors: yes | ||
|
||
- name: Link configuration files from php5 to php | ||
file: | ||
src: '/etc/php5/conf.d/{{ item }}' | ||
dest: '/etc/php/conf.d/{{ item }}' | ||
state: link | ||
with_items: "{{ php5_ini.stdout_lines }}" | ||
when: ansible_distribution == 'Alpine' and php5_ini is defined | ||
ignore_errors: yes | ||
|
||
############################# | ||
# Workaround PHP module files | ||
# for alpine | ||
############################# | ||
|
||
- name: Get list of PHP5 modules | ||
command: "ls /usr/lib/php5/modules/ |grep .so" | ||
register: php5_modules | ||
when: ansible_distribution == 'Alpine' | ||
ignore_errors: yes | ||
|
||
- name: Link module files from php5 to php | ||
file: | ||
src: '/usr/lib/php5/modules/{{ item }}' | ||
dest: '/usr/lib/php/modules/{{ item }}' | ||
state: link | ||
with_items: "{{ php5_modules.stdout_lines }}" | ||
when: ansible_distribution == 'Alpine' and php5_modules is defined | ||
ignore_errors: yes |
1 change: 1 addition & 0 deletions
1
docker/php/alpine-3/conf/provision/roles/webdevops-php/tasks/bootstrap.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
|
||
- include: bootstrap/php.yml | ||
- include: bootstrap/php-module.yml | ||
- include: bootstrap/php-fpm.main.yml | ||
- include: bootstrap/php-fpm.pool.yml | ||
- include: bootstrap/php-fpm.yml |
41 changes: 41 additions & 0 deletions
41
docker/php/alpine-3/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
|
||
############################# | ||
# Workaround PHP configuration files | ||
# for alpine | ||
############################# | ||
|
||
- name: Get list of PHP5 configuration files | ||
command: "ls /etc/php5/conf.d/ |grep .ini" | ||
register: php5_ini | ||
when: ansible_distribution == 'Alpine' | ||
ignore_errors: yes | ||
|
||
- name: Link configuration files from php5 to php | ||
file: | ||
src: '/etc/php5/conf.d/{{ item }}' | ||
dest: '/etc/php/conf.d/{{ item }}' | ||
state: link | ||
with_items: "{{ php5_ini.stdout_lines }}" | ||
when: ansible_distribution == 'Alpine' and php5_ini is defined | ||
ignore_errors: yes | ||
|
||
############################# | ||
# Workaround PHP module files | ||
# for alpine | ||
############################# | ||
|
||
- name: Get list of PHP5 modules | ||
command: "ls /usr/lib/php5/modules/ |grep .so" | ||
register: php5_modules | ||
when: ansible_distribution == 'Alpine' | ||
ignore_errors: yes | ||
|
||
- name: Link module files from php5 to php | ||
file: | ||
src: '/usr/lib/php5/modules/{{ item }}' | ||
dest: '/usr/lib/php/modules/{{ item }}' | ||
state: link | ||
with_items: "{{ php5_modules.stdout_lines }}" | ||
when: ansible_distribution == 'Alpine' and php5_modules is defined | ||
ignore_errors: yes |
1 change: 1 addition & 0 deletions
1
docker/php/centos-7-php56/conf/provision/roles/webdevops-php/tasks/bootstrap.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
|
||
- include: bootstrap/php.yml | ||
- include: bootstrap/php-module.yml | ||
- include: bootstrap/php-fpm.main.yml | ||
- include: bootstrap/php-fpm.pool.yml | ||
- include: bootstrap/php-fpm.yml |
41 changes: 41 additions & 0 deletions
41
docker/php/centos-7-php56/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
|
||
############################# | ||
# Workaround PHP configuration files | ||
# for alpine | ||
############################# | ||
|
||
- name: Get list of PHP5 configuration files | ||
command: "ls /etc/php5/conf.d/ |grep .ini" | ||
register: php5_ini | ||
when: ansible_distribution == 'Alpine' | ||
ignore_errors: yes | ||
|
||
- name: Link configuration files from php5 to php | ||
file: | ||
src: '/etc/php5/conf.d/{{ item }}' | ||
dest: '/etc/php/conf.d/{{ item }}' | ||
state: link | ||
with_items: "{{ php5_ini.stdout_lines }}" | ||
when: ansible_distribution == 'Alpine' and php5_ini is defined | ||
ignore_errors: yes | ||
|
||
############################# | ||
# Workaround PHP module files | ||
# for alpine | ||
############################# | ||
|
||
- name: Get list of PHP5 modules | ||
command: "ls /usr/lib/php5/modules/ |grep .so" | ||
register: php5_modules | ||
when: ansible_distribution == 'Alpine' | ||
ignore_errors: yes | ||
|
||
- name: Link module files from php5 to php | ||
file: | ||
src: '/usr/lib/php5/modules/{{ item }}' | ||
dest: '/usr/lib/php/modules/{{ item }}' | ||
state: link | ||
with_items: "{{ php5_modules.stdout_lines }}" | ||
when: ansible_distribution == 'Alpine' and php5_modules is defined | ||
ignore_errors: yes |
1 change: 1 addition & 0 deletions
1
docker/php/centos-7/conf/provision/roles/webdevops-php/tasks/bootstrap.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
|
||
- include: bootstrap/php.yml | ||
- include: bootstrap/php-module.yml | ||
- include: bootstrap/php-fpm.main.yml | ||
- include: bootstrap/php-fpm.pool.yml | ||
- include: bootstrap/php-fpm.yml |
41 changes: 41 additions & 0 deletions
41
docker/php/centos-7/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
|
||
############################# | ||
# Workaround PHP configuration files | ||
# for alpine | ||
############################# | ||
|
||
- name: Get list of PHP5 configuration files | ||
command: "ls /etc/php5/conf.d/ |grep .ini" | ||
register: php5_ini | ||
when: ansible_distribution == 'Alpine' | ||
ignore_errors: yes | ||
|
||
- name: Link configuration files from php5 to php | ||
file: | ||
src: '/etc/php5/conf.d/{{ item }}' | ||
dest: '/etc/php/conf.d/{{ item }}' | ||
state: link | ||
with_items: "{{ php5_ini.stdout_lines }}" | ||
when: ansible_distribution == 'Alpine' and php5_ini is defined | ||
ignore_errors: yes | ||
|
||
############################# | ||
# Workaround PHP module files | ||
# for alpine | ||
############################# | ||
|
||
- name: Get list of PHP5 modules | ||
command: "ls /usr/lib/php5/modules/ |grep .so" | ||
register: php5_modules | ||
when: ansible_distribution == 'Alpine' | ||
ignore_errors: yes | ||
|
||
- name: Link module files from php5 to php | ||
file: | ||
src: '/usr/lib/php5/modules/{{ item }}' | ||
dest: '/usr/lib/php/modules/{{ item }}' | ||
state: link | ||
with_items: "{{ php5_modules.stdout_lines }}" | ||
when: ansible_distribution == 'Alpine' and php5_modules is defined | ||
ignore_errors: yes |
1 change: 1 addition & 0 deletions
1
docker/php/debian-7/conf/provision/roles/webdevops-php/tasks/bootstrap.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
|
||
- include: bootstrap/php.yml | ||
- include: bootstrap/php-module.yml | ||
- include: bootstrap/php-fpm.main.yml | ||
- include: bootstrap/php-fpm.pool.yml | ||
- include: bootstrap/php-fpm.yml |
41 changes: 41 additions & 0 deletions
41
docker/php/debian-7/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
|
||
############################# | ||
# Workaround PHP configuration files | ||
# for alpine | ||
############################# | ||
|
||
- name: Get list of PHP5 configuration files | ||
command: "ls /etc/php5/conf.d/ |grep .ini" | ||
register: php5_ini | ||
when: ansible_distribution == 'Alpine' | ||
ignore_errors: yes | ||
|
||
- name: Link configuration files from php5 to php | ||
file: | ||
src: '/etc/php5/conf.d/{{ item }}' | ||
dest: '/etc/php/conf.d/{{ item }}' | ||
state: link | ||
with_items: "{{ php5_ini.stdout_lines }}" | ||
when: ansible_distribution == 'Alpine' and php5_ini is defined | ||
ignore_errors: yes | ||
|
||
############################# | ||
# Workaround PHP module files | ||
# for alpine | ||
############################# | ||
|
||
- name: Get list of PHP5 modules | ||
command: "ls /usr/lib/php5/modules/ |grep .so" | ||
register: php5_modules | ||
when: ansible_distribution == 'Alpine' | ||
ignore_errors: yes | ||
|
||
- name: Link module files from php5 to php | ||
file: | ||
src: '/usr/lib/php5/modules/{{ item }}' | ||
dest: '/usr/lib/php/modules/{{ item }}' | ||
state: link | ||
with_items: "{{ php5_modules.stdout_lines }}" | ||
when: ansible_distribution == 'Alpine' and php5_modules is defined | ||
ignore_errors: yes |
41 changes: 41 additions & 0 deletions
41
docker/php/debian-8-php7/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
|
||
############################# | ||
# Workaround PHP configuration files | ||
# for alpine | ||
############################# | ||
|
||
- name: Get list of PHP5 configuration files | ||
command: "ls /etc/php5/conf.d/ |grep .ini" | ||
register: php5_ini | ||
when: ansible_distribution == 'Alpine' | ||
ignore_errors: yes | ||
|
||
- name: Link configuration files from php5 to php | ||
file: | ||
src: '/etc/php5/conf.d/{{ item }}' | ||
dest: '/etc/php/conf.d/{{ item }}' | ||
state: link | ||
with_items: "{{ php5_ini.stdout_lines }}" | ||
when: ansible_distribution == 'Alpine' and php5_ini is defined | ||
ignore_errors: yes | ||
|
||
############################# | ||
# Workaround PHP module files | ||
# for alpine | ||
############################# | ||
|
||
- name: Get list of PHP5 modules | ||
command: "ls /usr/lib/php5/modules/ |grep .so" | ||
register: php5_modules | ||
when: ansible_distribution == 'Alpine' | ||
ignore_errors: yes | ||
|
||
- name: Link module files from php5 to php | ||
file: | ||
src: '/usr/lib/php5/modules/{{ item }}' | ||
dest: '/usr/lib/php/modules/{{ item }}' | ||
state: link | ||
with_items: "{{ php5_modules.stdout_lines }}" | ||
when: ansible_distribution == 'Alpine' and php5_modules is defined | ||
ignore_errors: yes |
1 change: 1 addition & 0 deletions
1
docker/php/debian-8/conf/provision/roles/webdevops-php/tasks/bootstrap.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
|
||
- include: bootstrap/php.yml | ||
- include: bootstrap/php-module.yml | ||
- include: bootstrap/php-fpm.main.yml | ||
- include: bootstrap/php-fpm.pool.yml | ||
- include: bootstrap/php-fpm.yml |
41 changes: 41 additions & 0 deletions
41
docker/php/debian-8/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
|
||
############################# | ||
# Workaround PHP configuration files | ||
# for alpine | ||
############################# | ||
|
||
- name: Get list of PHP5 configuration files | ||
command: "ls /etc/php5/conf.d/ |grep .ini" | ||
register: php5_ini | ||
when: ansible_distribution == 'Alpine' | ||
ignore_errors: yes | ||
|
||
- name: Link configuration files from php5 to php | ||
file: | ||
src: '/etc/php5/conf.d/{{ item }}' | ||
dest: '/etc/php/conf.d/{{ item }}' | ||
state: link | ||
with_items: "{{ php5_ini.stdout_lines }}" | ||
when: ansible_distribution == 'Alpine' and php5_ini is defined | ||
ignore_errors: yes | ||
|
||
############################# | ||
# Workaround PHP module files | ||
# for alpine | ||
############################# | ||
|
||
- name: Get list of PHP5 modules | ||
command: "ls /usr/lib/php5/modules/ |grep .so" | ||
register: php5_modules | ||
when: ansible_distribution == 'Alpine' | ||
ignore_errors: yes | ||
|
||
- name: Link module files from php5 to php | ||
file: | ||
src: '/usr/lib/php5/modules/{{ item }}' | ||
dest: '/usr/lib/php/modules/{{ item }}' | ||
state: link | ||
with_items: "{{ php5_modules.stdout_lines }}" | ||
when: ansible_distribution == 'Alpine' and php5_modules is defined | ||
ignore_errors: yes |
41 changes: 41 additions & 0 deletions
41
docker/php/debian-9/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
|
||
############################# | ||
# Workaround PHP configuration files | ||
# for alpine | ||
############################# | ||
|
||
- name: Get list of PHP5 configuration files | ||
command: "ls /etc/php5/conf.d/ |grep .ini" | ||
register: php5_ini | ||
when: ansible_distribution == 'Alpine' | ||
ignore_errors: yes | ||
|
||
- name: Link configuration files from php5 to php | ||
file: | ||
src: '/etc/php5/conf.d/{{ item }}' | ||
dest: '/etc/php/conf.d/{{ item }}' | ||
state: link | ||
with_items: "{{ php5_ini.stdout_lines }}" | ||
when: ansible_distribution == 'Alpine' and php5_ini is defined | ||
ignore_errors: yes | ||
|
||
############################# | ||
# Workaround PHP module files | ||
# for alpine | ||
############################# | ||
|
||
- name: Get list of PHP5 modules | ||
command: "ls /usr/lib/php5/modules/ |grep .so" | ||
register: php5_modules | ||
when: ansible_distribution == 'Alpine' | ||
ignore_errors: yes | ||
|
||
- name: Link module files from php5 to php | ||
file: | ||
src: '/usr/lib/php5/modules/{{ item }}' | ||
dest: '/usr/lib/php/modules/{{ item }}' | ||
state: link | ||
with_items: "{{ php5_modules.stdout_lines }}" | ||
when: ansible_distribution == 'Alpine' and php5_modules is defined | ||
ignore_errors: yes |
1 change: 1 addition & 0 deletions
1
docker/php/ubuntu-12.04/conf/provision/roles/webdevops-php/tasks/bootstrap.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
|
||
- include: bootstrap/php.yml | ||
- include: bootstrap/php-module.yml | ||
- include: bootstrap/php-fpm.main.yml | ||
- include: bootstrap/php-fpm.pool.yml | ||
- include: bootstrap/php-fpm.yml |
Oops, something went wrong.