diff --git a/inventory/vagrant/group_vars/webserver/php.yml b/inventory/vagrant/group_vars/webserver/php-Debian.yml similarity index 69% rename from inventory/vagrant/group_vars/webserver/php.yml rename to inventory/vagrant/group_vars/webserver/php-Debian.yml index ff770819..bfccdb35 100644 --- a/inventory/vagrant/group_vars/webserver/php.yml +++ b/inventory/vagrant/group_vars/webserver/php-Debian.yml @@ -1,6 +1,5 @@ --- -php_date_timezone: "America/Toronto" php_packages_extra: - libapache2-mod-php7.0 - php7.0-mysql diff --git a/inventory/vagrant/group_vars/webserver/php-RedHat.yml b/inventory/vagrant/group_vars/webserver/php-RedHat.yml new file mode 100644 index 00000000..b4a24480 --- /dev/null +++ b/inventory/vagrant/group_vars/webserver/php-RedHat.yml @@ -0,0 +1,5 @@ +--- + +php_packages_extra: + - php-mysql + - php-pgsql diff --git a/requirements.yml b/requirements.yml index e001bf92..5b885bdb 100644 --- a/requirements.yml +++ b/requirements.yml @@ -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 diff --git a/webserver.yml b/webserver.yml index 7752a5bb..33513c85 100644 --- a/webserver.yml +++ b/webserver.yml @@ -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