correct comment syntax ssg.policy ansible
search cancel

correct comment syntax ssg.policy ansible

book

Article ID: 263783

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

We are trying to manage and patch-validate several of our CA API gateways via ansible. One of the commands (blockinfile) needs to append a comment before and after in order to work.

Specifically we are trying to manage an addition to this file:
/opt/SecureSpan/Gateway/runtime/etc/ssg.policy

Which syntax would be correct a comment in that file?

  • /** {mark} ANSIBLE MANAGED BLOCK */
  • // {mark} ANSIBLE MANAGED BLOCK
  • # {mark} ANSIBLE MANAGED BLOCK
  • <!-- {mark} ANSIBLE MANAGED BLOCK -->

 

Environment

Release : 10.1

Resolution

Based on the fact it seems ssg.policy seems to be an extension of java policy it would seem comments should be // 

i.e. 

  • // {mark} ANSIBLE MANAGED BLOCK