diff --git a/changelogs/fragments/9951-mod-php-identifier.yml b/changelogs/fragments/9951-mod-php-identifier.yml new file mode 100644 index 0000000000..29d88091db --- /dev/null +++ b/changelogs/fragments/9951-mod-php-identifier.yml @@ -0,0 +1,2 @@ +minor_changes: + - apache2_module - added workaround for new PHP module name, from ``php7_module`` to ``php_module`` (https://github.com/ansible-collections/community.general/pull/9951). diff --git a/plugins/modules/apache2_module.py b/plugins/modules/apache2_module.py index a9fd72b24f..cf11dc5014 100644 --- a/plugins/modules/apache2_module.py +++ b/plugins/modules/apache2_module.py @@ -196,6 +196,7 @@ def create_apache_identifier(name): # re expressions to extract subparts of names re_workarounds = [ + ('php8', re.compile(r'^(php)[\d\.]+')), ('php', re.compile(r'^(php\d)\.')), ]