Use comment jinja filter with ansible_managed

This commit is contained in:
Jeremy Gardais 2024-09-04 16:57:05 +02:00
parent c84bc06090
commit 3b57009d31
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
3 changed files with 7 additions and 4 deletions

View File

@ -4,6 +4,9 @@
* Replace flatten jinja filter with **list**. * Replace flatten jinja filter with **list**.
* Call module with FQCN. * Call module with FQCN.
### Enhancements
* Use comment jinja filter with ansible_managed to allow multi-lines comment.
## v1.1.2 ## v1.1.2
### Enhancements ### Enhancements

View File

@ -1,4 +1,4 @@
# {{ ansible_managed }} # {{ ansible_managed | comment }}
# #
# Master configuration file for Xymon # Master configuration file for Xymon
# #
@ -20,6 +20,6 @@
#page common Common #page common Common
#group-except sslcert|bbd|xymond|xymongen|xymonnet|xymonproxy <font size="+1">Test</font> #group-except sslcert|bbd|xymond|xymongen|xymonnet|xymonproxy <font size="+1">Test</font>
#include hosts.d/common.cfg #include hosts.d/common.cfg

View File

@ -1,4 +1,4 @@
# {{ ansible_managed }} # {{ ansible_managed | comment }}
#192.168.0.1 www.{{ ansible_domain }} # apt libs SSH apache https://www.{{ ansible_domain }} #192.168.0.1 www.{{ ansible_domain }} # apt libs SSH apache https://www.{{ ansible_domain }}
#192.168.0.2 pxe.{{ ansible_domain }} # apt libs SSH DESCR:PXE CLIENT:deploy #192.168.0.2 pxe.{{ ansible_domain }} # apt libs SSH DESCR:PXE CLIENT:deploy