Using any (ASCII) character for commenting in Ansible comment filter

I needed to have comment in a PHP ini file where the prefix for commenting is
; , This is something I didn’t find in the documentation for the comment filter, so I looked in the code for the comment (in my case:
/usr/lib/python2.7/site-packages/ansible/plugins/filter/core.py )

Ansible comment filter source

Python

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

defcombine(*terms,**kwargs):

recursive=kwargs.get('recursive',False)

iflen(kwargs)>1or(len(kwargs)==1and'recursive'notinkwargs):

raiseerrors.AnsibleFilterError("'recursive' is the only valid keyword argument")