컬쥐네 다락방
Ansible | 템플릿 주석 본문
템플릿 주석
경고의 목적으로 사용된다
ansible.cfg
언제, 누가 어떻게 작성했는지에 관한 설명을 남긴다.
[defaults]
ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host}
templates/port.cnf.j2
comment 필터를 사용하면 자동으로 남기도록 설정 가능.
{{ ansible_managed | comment }}
[mysqld]
port={{ database["svc_port"] }}
'클라우드 > Ansible' 카테고리의 다른 글
Ansible | 역할(role) (0) | 2022.04.21 |
---|---|
Ansible | 아티펙트(Artifact)의 재사용 - 파일 (0) | 2022.04.21 |
Ansible | 블록과 태그 (0) | 2022.04.21 |
Ansible | 조건문과 핸들러 (0) | 2022.04.18 |
Ansible | 반복문 (0) | 2022.04.18 |