Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions roles/debian/php-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ php:
memory_consumption: 128
max_accelerated_files: 2000
validate_timestamps: 1
interned_strings_buffer: 8

```

Expand Down
1 change: 1 addition & 0 deletions roles/debian/php-cli/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ php:
memory_consumption: 128
max_accelerated_files: 2000
validate_timestamps: 1
interned_strings_buffer: 8
2 changes: 1 addition & 1 deletion roles/debian/php-cli/templates/php.cli.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -1739,7 +1739,7 @@ opcache.enable_cli={{ php.cli.opcache.enable_cli }}
opcache.memory_consumption={{ php.cli.opcache.memory_consumption }}

; The amount of memory for interned strings in Mbytes.
;opcache.interned_strings_buffer=4
opcache.interned_strings_buffer={{ php.cli.opcache.interned_strings_buffer }}

; The maximum number of keys (scripts) in the OPcache hash table.
; Only numbers between 200 and 100000 are allowed.
Expand Down
1 change: 1 addition & 0 deletions roles/debian/php-fpm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ php:
memory_consumption: 128
max_accelerated_files: 2000
validate_timestamps: 1
interned_strings_buffer: 8
clear_env: "yes"

```
Expand Down
1 change: 1 addition & 0 deletions roles/debian/php-fpm/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ php:
memory_consumption: 128
max_accelerated_files: 2000
validate_timestamps: 1
interned_strings_buffer: 8
clear_env: "yes"
# Cloudwatch log settings.
log_group_prefix: ""
Expand Down
2 changes: 1 addition & 1 deletion roles/debian/php-fpm/templates/php.fpm.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -1739,7 +1739,7 @@ opcache.enable_cli={{ php.fpm.opcache.enable_cli }}
opcache.memory_consumption={{ php.fpm.opcache.memory_consumption }}

; The amount of memory for interned strings in Mbytes.
;opcache.interned_strings_buffer=4
opcache.interned_strings_buffer={{ php.fpm.opcache.interned_strings_buffer }}

; The maximum number of keys (scripts) in the OPcache hash table.
; Only numbers between 200 and 100000 are allowed.
Expand Down
10 changes: 5 additions & 5 deletions roles/debian/sudo_config/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
state: directory
mode: "0750"

- name: Create temporary directory for sudoers validation
- name: Create temporary directory for sudoers validation.
ansible.builtin.tempfile:
state: directory
suffix: sudoers
register: temp_sudoers_dir
when: sudo_config | default([]) | length > 0

- name: Create sudoers file for validation
- name: Create sudoers file for validation.
ansible.builtin.template:
src: "sudoer.j2"
dest: "{{ temp_sudoers_dir.path }}/{{ item.filename }}"
Expand All @@ -23,7 +23,7 @@
with_items: "{{ sudo_config if sudo_config is iterable and sudo_config is not mapping else [sudo_config] }}"
register: sudo_templates

- name: Validate sudoers file on remote
- name: Validate sudoers file on remote.
ansible.builtin.command: "visudo -cf {{ temp_sudoers_dir.path }}/{{ item.filename }}"
register: visudo_check
failed_when: visudo_check.rc != 0
Expand All @@ -34,7 +34,7 @@
label: "{{ item.filename }}"
delegate_to: "{{ inventory_hostname }}"

- name: Install validated sudoers file
- name: Install validated sudoers file.
ansible.builtin.copy:
src: "{{ temp_sudoers_dir.path }}/{{ item.filename }}"
dest: "/etc/sudoers.d/{{ item.filename }}"
Expand All @@ -45,7 +45,7 @@
when: item.entity_name | default('') | length > 0
with_items: "{{ sudo_config if sudo_config is iterable and sudo_config is not mapping else [sudo_config] }}"

- name: Clean up temporary files
- name: Clean up temporary files.
ansible.builtin.file:
path: "{{ temp_sudoers_dir.path }}"
state: absent
Expand Down