Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Set a separate memory limit for CLI PHP #35

Merged
merged 2 commits into from
Nov 10, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions conf/vagrant/provisioning/roles/php/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
- name: PHP | Adjust php.ini memory_limit
become: true
lineinfile: dest={{ item }}
lineinfile: dest={{ item.file }}
regexp='memory_limit'
line='memory_limit = {{ php_ini_memory_limit }}'
line='memory_limit = {{ item.value }}'
with_items:
- /etc/php/5.6/apache2/php.ini
- /etc/php/5.6/cli/php.ini
- ( file: '/etc/php/5.6/apache2/php.ini', value: "{{ php_ini_memory_limit }}" }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a syntax error here? This line (and the next) start with a parenthesis ( and end with a bracket }

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say so. Yikes!

- ( file: '/etc/php/5.6/cli/php.ini', value: '-1' }
tags: PHP

- name: PHP | Enable PHP error display
Expand Down