|
|
|
|
|
|
|
|
{% if use_scl_repo and grains['os'] == 'CentOS' %} |
|
|
{% if use_scl_repo and grains['os'] == 'CentOS' %} |
|
|
php_centos_scl_enable_{{ state }}: |
|
|
php_centos_scl_enable_{{ state }}: |
|
|
pkg.installed: |
|
|
pkg.installed: |
|
|
|
|
|
- name: centos-release-scl |
|
|
|
|
|
{% elif use_scl_repo and grains['os'] == 'RedHat' %} |
|
|
|
|
|
php_redhat_scl_enable_{{ state }}: |
|
|
|
|
|
cmd.run: |
|
|
|
|
|
- name: yum-config-manager --enable rhel-server-rhscl-{{ grains['osmajorrelease'] }}-rpms |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
php_install_{{ state }}: |
|
|
pkg.installed: |
|
|
pkg.installed: |
|
|
- name: {{ state }} |
|
|
- name: {{ state }} |
|
|
- pkgs: {{ pkgs|json() }} |
|
|
- pkgs: {{ pkgs|json() }} |