Skip to content

Commit

Permalink
Fix php modules for alpine (workaround) part 2
Browse files Browse the repository at this point in the history
Add missing part for php, php-apache and php-nginx images
  • Loading branch information
mblaschke committed Jun 20, 2016
1 parent 64aa17f commit db24bae
Show file tree
Hide file tree
Showing 27 changed files with 594 additions and 7 deletions.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Loading

0 comments on commit db24bae

Please sign in to comment.