Last active
August 29, 2015 14:05
-
-
Save klynton/aaf0069617baafcf2f04 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{% for module, version in { | |
‘test’: (‘1.1.1’, 'stable'), | |
‘hello’: (‘1.2.1’, 'stable'), | |
‘world’: (‘2.2.2’, 'beta') | |
}.items() %} | |
Ensure {{ module }} pecl module is installed: | |
pecl.installed: | |
- name: {{ module }} | |
- version: {{ version[0] }} | |
- preferred_state: {{ version[1] }} | |
Ensure {{ module }} pecl module is configured: | |
file.managed: | |
- name: /etc/php5/mods-available/{{ module }}.ini | |
- contents: "extension={{ module }}.so" | |
- listen_in: | |
- cmd: Restart apache | |
Ensure {{ module }} pecl module is enabled for cli: | |
file.symlink: | |
- name: /etc/php5/cli/conf.d/{{ module }}.ini | |
- target: /etc/php5/mods-available/{{ module }}.ini | |
Ensure {{ module }} pecl module is enabled for apache: | |
file.symlink: | |
- name: /etc/php5/apache2/conf.d/{{ module }}.ini | |
- target: /etc/php5/mods-available/{{ module }}.ini | |
- listen_in: | |
- cmd: Restart apache | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment