{"id":18593317,"url":"https://github.com/acromedia/ansible-role-php","last_synced_at":"2026-01-25T01:32:32.658Z","repository":{"id":38442486,"uuid":"156577360","full_name":"AcroMedia/ansible-role-php","owner":"AcroMedia","description":"Install and configure PHP for use in Acro hosting environments","archived":false,"fork":false,"pushed_at":"2023-01-24T21:15:46.000Z","size":92,"stargazers_count":0,"open_issues_count":2,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-14T12:47:51.782Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AcroMedia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-07T16:39:06.000Z","updated_at":"2024-04-14T12:47:51.784Z","dependencies_parsed_at":"2023-02-14T01:31:46.398Z","dependency_job_id":null,"html_url":"https://github.com/AcroMedia/ansible-role-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AcroMedia%2Fansible-role-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AcroMedia%2Fansible-role-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AcroMedia%2Fansible-role-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AcroMedia%2Fansible-role-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AcroMedia","download_url":"https://codeload.github.com/AcroMedia/ansible-role-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254512995,"owners_count":22083487,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T01:12:03.013Z","updated_at":"2026-01-25T01:32:32.647Z","avatar_url":"https://github.com/AcroMedia.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible role: PHP\n\n![.github/workflows/molecule.yml](https://github.com/AcroMedia/ansible-role-php/workflows/.github/workflows/molecule.yml/badge.svg)\n\nInstall and configure PHP, typically for use with Drupal sites in Acro Media NGINX + FPM hosting environments.\n\n\n## Requirements\n\n* Ubuntu LTS (20.04 or newer)\n\n\n## Role Variables\n\n#### `php_default_version`\n  * The default CLI version of php to set on the server.\n  * Defaults to `8.3`\n\n#### `php_memory_limit`\n* The default maximum memory limit\n* Applies to all php versions installed\n* Defaults to `256M`.\n\n#### `php_max_input_vars`\n* The maximum number of input vars that can be accepted in a POST request\n* Drupal typically needs this way higher than the default\n* Applies to all php versions installed\n* Defaults to `3001`.\n\n#### `php_versions`\n* A list of versions to install.\n* Defaults to `[ {{php_default_version}} ]`.\n\n### For PHP 8.0 and before:\n\n* See [defaults/main.yml](defaults/main.yml) - Up to and including PHP 8.0, the add_modules and default modules list were version-specific variables.\n\n### For PHP 8.1 and later:\n\n#### `php_add_modules`\n* A list of extra apt packages not already included in the default list. See [defaults/main.yml](defaults/main.yml).\n* The modules you specify must be the full name of the apt package to install. (See example playbook below)\n* Defaults to an empty list. `[]`\n\n#### `php_modules`\n* Not defined by default, so the role can define it and populated it, based on the combination of `php_versions` and `php_default_module_name_suffixes` (see [defaults/main.yml](defaults/main.yml))\n* If you define this var in your playbook, your var will **completely override the ENTIRE list of ALL modules, for ANY PHP \u003e= 8.1 version** that the role would normally install. E.g. If you have multiple versions of php installed, you'll need to specify all modules for every version yourself.\n\n#### `php_use_legacy_module_lists`\n* Defaults to `true`\n* For compatibility with older playbooks that have been using the role, and have custom module specifications.\n* Setting this to `false` will let the role the use 8.1-style package name generator for all (older) php versions, as well as 8.1 and beyond.\n* If your role doesn't use any version specific lists (see defaults/main.yml), then it's safe to set this to `false`.\n\n\n## Dependencies\n\nNone\n\n\n## Example Playbook\n```yaml\n- name: Install + Configure PHP\n  hosts: servers\n  gather_facts: yes\n  become: yes\n  vars:\n    php_default_version: '8.1'\n    php_versions:\n      - '7.4'\n      - '8.0'\n      - '8.1'\n    php_add_modules:\n      - php7.4-foo\n      - php8.0-foo\n      - php8.1-foo\n      - php8.1-bar\n    # php_use_legacy_module_lists: ... See variable documentation.\n  roles:\n    - role: acromedia.php\n      tags:\n        - php\n```\n\n## License\n\nGPLv3\n\n\n## Author Information\n\nAcro Media Inc.\nhttps://www.acromedia.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facromedia%2Fansible-role-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facromedia%2Fansible-role-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facromedia%2Fansible-role-php/lists"}