Skip to content
Snippets Groups Projects
Commit 4d9aa87a authored by Chris Croome's avatar Chris Croome
Browse files

Start of argument_specs dict added

parent aadc1999
Branches
Tags
1 merge request!1Merge Sury
Pipeline #22363 passed
---
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: license (GPLv3)
min_ansible_version: 2.9
license: GNU General Public License v3.0 (GPLv3)
min_ansible_version: 2.11
platforms:
- name: debian
versions:
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment