Skip to content

Commit

Permalink
Repo-Remi for php7 on CentOS (#51)
Browse files Browse the repository at this point in the history
* Implement repo-remi for PHP7 in CentOS

Credit to @DigitLib who did this on their fork (https://github.com/DigitLib/claw-playbook/pulls) in a cleaner way than I initially did.

* remove default php_date_timezone from group_vars

* adding geerlingguy.php-mysql version requirement
  • Loading branch information
seth-shaw-unlv authored and whikloj committed Feb 5, 2018
1 parent 2da44f7 commit d4990d3
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---

php_date_timezone: "America/Toronto"
php_packages_extra:
- libapache2-mod-php7.0
- php7.0-mysql
Expand Down
5 changes: 5 additions & 0 deletions inventory/vagrant/group_vars/webserver/php-RedHat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---

php_packages_extra:
- php-mysql
- php-pgsql
6 changes: 6 additions & 0 deletions requirements.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
- src: geerlingguy.php-mysql
version: 2.0.1

- src: geerlingguy.repo-remi
version: 1.2.0

- src: geerlingguy.apache
version: 2.1.1

Expand Down
6 changes: 6 additions & 0 deletions webserver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@

- hosts: webserver
become: yes
vars:
php_enablerepo: "remi-php70"
php_packages_state: "latest"

roles:
- name: geerlingguy.repo-remi
when: ansible_os_family == "RedHat"
- geerlingguy.apache
- geerlingguy.php
- geerlingguy.php-mysql
- geerlingguy.git
- geerlingguy.composer
- geerlingguy.drush
Expand Down

0 comments on commit d4990d3

Please sign in to comment.