diff --git a/docker/php/alpine-3-php7/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml b/docker/php/alpine-3-php7/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml new file mode 100644 index 000000000..31cccd1ae --- /dev/null +++ b/docker/php/alpine-3-php7/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml @@ -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 diff --git a/docker/php/alpine-3/conf/provision/roles/webdevops-php/tasks/bootstrap.yml b/docker/php/alpine-3/conf/provision/roles/webdevops-php/tasks/bootstrap.yml index 5883fa1fe..11abd3f0e 100644 --- a/docker/php/alpine-3/conf/provision/roles/webdevops-php/tasks/bootstrap.yml +++ b/docker/php/alpine-3/conf/provision/roles/webdevops-php/tasks/bootstrap.yml @@ -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 diff --git a/docker/php/alpine-3/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml b/docker/php/alpine-3/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml new file mode 100644 index 000000000..31cccd1ae --- /dev/null +++ b/docker/php/alpine-3/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml @@ -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 diff --git a/docker/php/centos-7-php56/conf/provision/roles/webdevops-php/tasks/bootstrap.yml b/docker/php/centos-7-php56/conf/provision/roles/webdevops-php/tasks/bootstrap.yml index 5883fa1fe..11abd3f0e 100644 --- a/docker/php/centos-7-php56/conf/provision/roles/webdevops-php/tasks/bootstrap.yml +++ b/docker/php/centos-7-php56/conf/provision/roles/webdevops-php/tasks/bootstrap.yml @@ -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 diff --git a/docker/php/centos-7-php56/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml b/docker/php/centos-7-php56/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml new file mode 100644 index 000000000..31cccd1ae --- /dev/null +++ b/docker/php/centos-7-php56/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml @@ -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 diff --git a/docker/php/centos-7/conf/provision/roles/webdevops-php/tasks/bootstrap.yml b/docker/php/centos-7/conf/provision/roles/webdevops-php/tasks/bootstrap.yml index 5883fa1fe..11abd3f0e 100644 --- a/docker/php/centos-7/conf/provision/roles/webdevops-php/tasks/bootstrap.yml +++ b/docker/php/centos-7/conf/provision/roles/webdevops-php/tasks/bootstrap.yml @@ -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 diff --git a/docker/php/centos-7/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml b/docker/php/centos-7/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml new file mode 100644 index 000000000..31cccd1ae --- /dev/null +++ b/docker/php/centos-7/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml @@ -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 diff --git a/docker/php/debian-7/conf/provision/roles/webdevops-php/tasks/bootstrap.yml b/docker/php/debian-7/conf/provision/roles/webdevops-php/tasks/bootstrap.yml index 5883fa1fe..11abd3f0e 100644 --- a/docker/php/debian-7/conf/provision/roles/webdevops-php/tasks/bootstrap.yml +++ b/docker/php/debian-7/conf/provision/roles/webdevops-php/tasks/bootstrap.yml @@ -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 diff --git a/docker/php/debian-7/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml b/docker/php/debian-7/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml new file mode 100644 index 000000000..31cccd1ae --- /dev/null +++ b/docker/php/debian-7/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml @@ -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 diff --git a/docker/php/debian-8-php7/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml b/docker/php/debian-8-php7/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml new file mode 100644 index 000000000..31cccd1ae --- /dev/null +++ b/docker/php/debian-8-php7/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml @@ -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 diff --git a/docker/php/debian-8/conf/provision/roles/webdevops-php/tasks/bootstrap.yml b/docker/php/debian-8/conf/provision/roles/webdevops-php/tasks/bootstrap.yml index 5883fa1fe..11abd3f0e 100644 --- a/docker/php/debian-8/conf/provision/roles/webdevops-php/tasks/bootstrap.yml +++ b/docker/php/debian-8/conf/provision/roles/webdevops-php/tasks/bootstrap.yml @@ -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 diff --git a/docker/php/debian-8/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml b/docker/php/debian-8/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml new file mode 100644 index 000000000..31cccd1ae --- /dev/null +++ b/docker/php/debian-8/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml @@ -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 diff --git a/docker/php/debian-9/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml b/docker/php/debian-9/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml new file mode 100644 index 000000000..31cccd1ae --- /dev/null +++ b/docker/php/debian-9/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml @@ -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 diff --git a/docker/php/ubuntu-12.04/conf/provision/roles/webdevops-php/tasks/bootstrap.yml b/docker/php/ubuntu-12.04/conf/provision/roles/webdevops-php/tasks/bootstrap.yml index 5883fa1fe..11abd3f0e 100644 --- a/docker/php/ubuntu-12.04/conf/provision/roles/webdevops-php/tasks/bootstrap.yml +++ b/docker/php/ubuntu-12.04/conf/provision/roles/webdevops-php/tasks/bootstrap.yml @@ -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 diff --git a/docker/php/ubuntu-12.04/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml b/docker/php/ubuntu-12.04/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml new file mode 100644 index 000000000..31cccd1ae --- /dev/null +++ b/docker/php/ubuntu-12.04/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml @@ -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 diff --git a/docker/php/ubuntu-14.04/conf/provision/roles/webdevops-php/tasks/bootstrap.yml b/docker/php/ubuntu-14.04/conf/provision/roles/webdevops-php/tasks/bootstrap.yml index 5883fa1fe..11abd3f0e 100644 --- a/docker/php/ubuntu-14.04/conf/provision/roles/webdevops-php/tasks/bootstrap.yml +++ b/docker/php/ubuntu-14.04/conf/provision/roles/webdevops-php/tasks/bootstrap.yml @@ -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 diff --git a/docker/php/ubuntu-14.04/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml b/docker/php/ubuntu-14.04/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml new file mode 100644 index 000000000..31cccd1ae --- /dev/null +++ b/docker/php/ubuntu-14.04/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml @@ -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 diff --git a/docker/php/ubuntu-15.04/conf/provision/roles/webdevops-php/tasks/bootstrap.yml b/docker/php/ubuntu-15.04/conf/provision/roles/webdevops-php/tasks/bootstrap.yml index 5883fa1fe..11abd3f0e 100644 --- a/docker/php/ubuntu-15.04/conf/provision/roles/webdevops-php/tasks/bootstrap.yml +++ b/docker/php/ubuntu-15.04/conf/provision/roles/webdevops-php/tasks/bootstrap.yml @@ -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 diff --git a/docker/php/ubuntu-15.04/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml b/docker/php/ubuntu-15.04/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml new file mode 100644 index 000000000..31cccd1ae --- /dev/null +++ b/docker/php/ubuntu-15.04/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml @@ -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 diff --git a/docker/php/ubuntu-15.10/conf/provision/roles/webdevops-php/tasks/bootstrap.yml b/docker/php/ubuntu-15.10/conf/provision/roles/webdevops-php/tasks/bootstrap.yml index 5883fa1fe..11abd3f0e 100644 --- a/docker/php/ubuntu-15.10/conf/provision/roles/webdevops-php/tasks/bootstrap.yml +++ b/docker/php/ubuntu-15.10/conf/provision/roles/webdevops-php/tasks/bootstrap.yml @@ -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 diff --git a/docker/php/ubuntu-15.10/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml b/docker/php/ubuntu-15.10/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml new file mode 100644 index 000000000..31cccd1ae --- /dev/null +++ b/docker/php/ubuntu-15.10/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml @@ -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 diff --git a/docker/php/ubuntu-16.04/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml b/docker/php/ubuntu-16.04/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml new file mode 100644 index 000000000..31cccd1ae --- /dev/null +++ b/docker/php/ubuntu-16.04/conf/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml @@ -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 diff --git a/documentation/docs/content/DockerImages/dockerfiles/include/image-tag-php.rst b/documentation/docs/content/DockerImages/dockerfiles/include/image-tag-php.rst index 153c12b89..abbedcaee 100644 --- a/documentation/docs/content/DockerImages/dockerfiles/include/image-tag-php.rst +++ b/documentation/docs/content/DockerImages/dockerfiles/include/image-tag-php.rst @@ -8,7 +8,7 @@ Tag Distribution name PHP Version ``ubuntu-16.04`` xenial (LTS) PHP 7.0 ``debian-7`` wheezy PHP 5.4 ``debian-8`` jessie PHP 5.6 -``debian-8-php7`` jessie with dotdeb PHP 7.x (via dotdeb) +``debian-8-php7`` jessie with dotdeb PHP 7.x (via sury) ``debian-9`` stretch PHP 7.0 ``centos-7`` PHP 5.4 ====================== ========================== =============== diff --git a/documentation/docs/content/KnownIssues/index.rst b/documentation/docs/content/KnownIssues/index.rst index 7e666197e..febe81a76 100644 --- a/documentation/docs/content/KnownIssues/index.rst +++ b/documentation/docs/content/KnownIssues/index.rst @@ -17,13 +17,12 @@ webdevops/php...:debian-7 - missing redis - missing apcu -webdevops/php...:debian-8-php7 -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +webdevops/php...:alpine-3 +^^^^^^^^^^^^^^^^^^^^^^^^^ -- missing xdebug +- missing mhash -webdevops/php...:debian-8-php7 +webdevops/php...-dev:debian-8-php7 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -- missing redis -- missing mhash +- missing xdebug diff --git a/provisioning/php/general/provision/roles/webdevops-php/tasks/bootstrap.yml b/provisioning/php/general/provision/roles/webdevops-php/tasks/bootstrap.yml index 5883fa1fe..11abd3f0e 100644 --- a/provisioning/php/general/provision/roles/webdevops-php/tasks/bootstrap.yml +++ b/provisioning/php/general/provision/roles/webdevops-php/tasks/bootstrap.yml @@ -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 diff --git a/provisioning/php/general/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml b/provisioning/php/general/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml new file mode 100644 index 000000000..31cccd1ae --- /dev/null +++ b/provisioning/php/general/provision/roles/webdevops-php/tasks/bootstrap/php-module.yml @@ -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 diff --git a/test/run.sh b/test/run.sh index 2074b1105..9fa1547be 100755 --- a/test/run.sh +++ b/test/run.sh @@ -219,6 +219,10 @@ function setupDockerTagEnvironment() { export PHP_XDEBUG=0 ;; + alpine-3) + export PHP_MHASH=0 + ;; + centos-7-php56) export PHP_APCU=0 export PHP_REDIS=0