사용자 도구

사이트 도구


devops:ansible

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
devops:ansible [2022/12/30 12:25]
kwon37xi [AWS]
devops:ansible [2023/01/14 13:38] (현재)
kwon37xi [lineinfile module]
줄 176: 줄 176:
 </code> </code>
  
 +===== lineinfile module =====
 +  * [[https://docs.ansible.com/ansible/latest/collections/ansible/builtin/lineinfile_module.html|lineinfile module]]
 +  * 파일 내의 줄들을 관리한다. 내용을 추가하거나, 변경하거나.
 +  * [[linux:sed|Linux sed]] 대체.
 +
 +=====  =====
 +  * [[https://docs.ansible.com/ansible/latest/collections/ansible/builtin/blockinfile_module.html|blockinfile module]]
 +  * 파일 내의 특정 블록을 추가,사제,변경한다.
 +===== replace module =====
 +  * [[https://docs.ansible.com/ansible/latest/collections/ansible/builtin/replace_module.html|replace module]]
 +  * [[:regex|RegEx]]로 파일 내용 교체
 ===== 참조 ===== ===== 참조 =====
   * [[https://www.youtube.com/playlist?list=PLT98CRl2KxKEUHie1m24-wkyHpEsa4Y70|Getting started with Ansible - YouTube]] : 매우 쉽게 Ansible 설명.   * [[https://www.youtube.com/playlist?list=PLT98CRl2KxKEUHie1m24-wkyHpEsa4Y70|Getting started with Ansible - YouTube]] : 매우 쉽게 Ansible 설명.
devops/ansible.1672370715.txt.gz · 마지막으로 수정됨: 2022/12/30 12:25 저자 kwon37xi