ansible-php/filter_plugins/php.py

11 lines
248 B
Python
Raw Normal View History

2019-12-25 00:34:37 +07:00
def php_socket(php_version, pool_name):
return '/run/php/php%s-%s-fpm.sock' % (php_version, pool_name)
class FilterModule(object):
''' PHP module '''
def filters(self):
return {
'php_socket': php_socket,
}