Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
php
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
webarch
php
Commits
4d9aa87a
Commit
4d9aa87a
authored
2 years ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
Start of argument_specs dict added
parent
aadc1999
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1
Merge Sury
Pipeline
#22363
passed
2 years ago
Stage: lint
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
meta/main.yml
+30
-3
30 additions, 3 deletions
meta/main.yml
tasks/main.yml
+2
-23
2 additions, 23 deletions
tasks/main.yml
with
32 additions
and
26 deletions
meta/main.yml
+
30
−
3
View file @
4d9aa87a
---
argument_specs
:
main
:
author
:
Chris Croome
description
:
Ansible role for installing and configuring PHP on Debian
short_description
:
The main entry point for the PHP role.
options
:
php_sury
:
type
:
bool
required
:
true
description
:
Use the Sury PHP deb package repo
php_dpkg
:
type
:
str
required
:
true
description
:
The path to dpkg for Ansible local facts
php_phpquery
:
type
:
str
required
:
true
description
:
The path to phpquery for Ansible local facts
php_alternatives
:
type
:
dict
equired
:
true
description
:
A dictionary for the Alternatives role to set the priority of PHP versions
php_versions
:
type
:
dict
equired
:
true
description
:
A dictionary for the PHP versions, packages, sapis and modules
galaxy_info
:
role_name
:
php
author
:
Chris Croome
namespace
:
chriscroome
description
:
Ansible role for installing
PHP-FPM
on Debian
description
:
Ansible role for installing
and configuring PHP
on Debian
company
:
Webarchitects Co-operative
license
:
l
icense (GPLv3)
min_ansible_version
:
2.
9
license
:
GNU General Public L
icense
v3.0
(GPLv3)
min_ansible_version
:
2.
11
platforms
:
-
name
:
debian
versions
:
...
...
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
2
−
23
View file @
4d9aa87a
...
...
@@ -2,29 +2,8 @@
-
name
:
Install and configure PHP
block
:
-
name
:
Check that depreciated variables are not used
assert
:
that
:
-
php_allow_local_infile is not defined
-
name
:
Check that variables are booleans
assert
:
that
:
-
php_allow_url_include | type_debug == "bool"
-
php_mysqli_allow_local_infile | type_debug == "bool"
-
phpcli_allow_local_infile | type_debug == "bool"
-
php_opcache_enable | type_debug == "bool"
-
php_opcache_validate_permission | type_debug == "bool"
-
php_opcache_validate_root | type_debug == "bool"
-
name
:
Check that the distro is Debian Bullseye, Buster or Stretch or Ubuntu Focal or Bionic
assert
:
that
:
-
ansible_distribution_release is defined
-
ansible_distribution_release is regex("^bionic|bullseye|buster|focal|stretch$")
# - name: Include local facts tasks
# include_tasks: local_facts.yml
-
name
:
Include local facts tasks
include_tasks
:
local_facts.yml
-
name
:
Include check tasks
include_tasks
:
checks.yml
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment