Skip to content

Commit

Permalink
Merge pull request #478 from opendevshop/ops/php/versions
Browse files Browse the repository at this point in the history
Ops / PHP / Versions: Include geerlingguy.php versions and set default variable.
  • Loading branch information
jonpugh authored Jan 4, 2020
2 parents f9ce48a + 022bc36 commit f71120c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
9 changes: 7 additions & 2 deletions playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@
---
- hosts: all
user: root
vars:
php_version: '7.2'
php_default_version_debian: '7.2'

roles:
- role: geerlingguy.repo-remi
when: ansible_os_family == 'RedHat'

- opendevshop.users
- opendevshop.apache
- geerlingguy.php-versions
- geerlingguy.php
- geerlingguy.php-mysql
- geerlingguy.composer
- opendevshop.devmaster
vars:
php_version: "7.1"
6 changes: 6 additions & 0 deletions requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
- name: geerlingguy.php
version: 3.7.0

- name: geerlingguy.php-versions
version: 4.0.2

- name: geerlingguy.repo-remi
version: 1.2.0

- name: geerlingguy.git
version: 2.0.4

Expand Down
1 change: 1 addition & 0 deletions roles/.ansible-lint
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
skip_list:
- '302'
- '303'
- '306'
exclude_paths:
- ./geerlingguy.apache
- ./geerlingguy.composer
Expand Down
4 changes: 4 additions & 0 deletions roles/opendevshop.devmaster/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@
mode: 0755
with_items: "{{ aegir_log_files_touch }}"

- name: Confirm PHP version is correct.
shell: php -v | grep -F '{{ php_version }}'
changed_when: false

# CentOS started failing tests because the PHP CLI was throwing Warnings about date.timezone missing.
# @TODO: Investigate php.ini for CLI on all OS
# - name: 'RedHat: Set timezone in PHP.ini for CLI.'
Expand Down
3 changes: 0 additions & 3 deletions roles/opendevshop.users/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,3 @@ ssh_known_hosts:
- bitbucket.org
- drupal.org
- gitlab.com

php_version: "7.1"
php_default_version_debian: "{{ php_version }}"

0 comments on commit f71120c

Please sign in to comment.