Compare commits

...

5 Commits

Author SHA1 Message Date
Colan Schwartz 1b50246c02
Merge 03e012eeec into 51684c4c27 2024-01-31 22:01:49 -07:00
Jeff Geerling 51684c4c27 Make local dev with molecule a little easier. 2024-01-24 21:59:52 -06:00
Colan Schwartz 03e012eeec Issue #140: Fixed Lint warnings and errors. 2021-10-19 16:16:14 -04:00
Colan Schwartz f72f19f907 Issue #140: Removed extra blank line. 2021-10-08 17:52:06 -04:00
Colan Schwartz a56f185ec2 Issue #140: Enable setting for CLI memory limit. 2021-10-08 17:51:04 -04:00
7 changed files with 33 additions and 9 deletions

View File

@ -19,12 +19,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the codebase.
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: 'geerlingguy.php'
- name: Set up Python 3.
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.x'
@ -47,8 +47,6 @@ jobs:
playbook: converge.yml
- distro: ubuntu2004
playbook: converge.yml
- distro: ubuntu1804
playbook: converge.yml
- distro: debian12
playbook: converge.yml
- distro: debian11
@ -60,12 +58,12 @@ jobs:
steps:
- name: Check out the codebase.
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: 'geerlingguy.php'
- name: Set up Python 3.
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.x'

View File

@ -22,12 +22,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the codebase.
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: 'geerlingguy.php'
- name: Set up Python 3.
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.x'

View File

@ -69,6 +69,10 @@ php_enable_apc: true
php_apc_shm_size: "96M"
php_apc_enable_cli: "0"
# Manage PHP CLI memory limit.
php_set_cli_memory_limit: false
php_cli_memory_limit: "512M"
# If this is set to false, none of the following options will have any effect.
# Any and all changes to /etc/php.ini will be your responsibility.
php_use_managed_ini: true

View File

@ -2,11 +2,13 @@
role_name_check: 1
dependency:
name: galaxy
options:
ignore-errors: true
driver:
name: docker
platforms:
- name: instance
image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest"
image: "geerlingguy/docker-${MOLECULE_DISTRO:-rockylinux8}-ansible:latest"
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw

14
tasks/configure-cli.yml Normal file
View File

@ -0,0 +1,14 @@
---
- name: Set PHP CLI memory limit.
block:
- name: Ensure PHP CLI config directory exists.
file:
dest: "/etc/php/{{ php_default_version_debian }}/cli/conf.d/"
state: directory
- name: Set PHP CLI memory limit.
template:
src: memory_limit.ini.j2
dest: "/etc/php/{{ php_default_version_debian }}/cli/conf.d/20-memory_limit.ini"
become: true
when: php_set_cli_memory_limit | bool

View File

@ -85,3 +85,4 @@
- include_tasks: configure-apcu.yml
- include_tasks: configure-opcache.yml
- include_tasks: configure-fpm.yml
- include_tasks: configure-cli.yml

View File

@ -0,0 +1,5 @@
; {{ ansible_managed }}
; configuration for increasing PHP CLI memory limit
; priority=20
memory_limit = {{ php_cli_memory_limit }}