본문 바로가기

IT study/Linux7

03.yaml syntax 설정 yaml syntax 기본자료형 scalar : 스트링 또는 숫자 sequence : 배열 또는 리스트 mapping : 해시 또는 딕셔너리, 키/value 형태 --- # A list of tasty fruits - Apple - Orange - Strawberry - Mango ... # An employee record martin: name: Martin D'vloper job: Developer skill: Elite # Employee records - martin: name: Martin D'vloper job: Developer skills: - python - perl - pascal - tabitha: name: Tabitha Bitumen job: Developer skills: - .. 2022. 12. 10.
02. yaml 파일 설정 ansible 2.8 based CentOS 7.6 ansbile control node 요구사항 - Python2, or Python3 - OS 는 Redhat, Debian, CentOS, MacOS, BSD 계열 리눅스 * Microsoft Windows 는 제어노드로는 사용불가 - ansible package - ssh service ansible managed node 요구사항 - Python2, or Python3 - ssh service(default로 sftp 사용, scp 로 변경가능하며, 변경하는경우에는 ansible.cfg 수정) ansible 설치 1. 컨트롤서버에 공개키를 생성 managed node 에 공개키를 업로드. 2. ansible 설치 yum -y install ansi.. 2022. 12. 10.
01. ansible 및 yaml 실습 yaml 설정파일 및 명령어 실습장비 control node: server1.example.com NIC 타입 및 ip address: NAT type , 192.168.10.10 hostname: server1.example.com ------------------------------------------------ managed node(관리대상) : server2.example.com NIC 타입 및 ip address: NAT type , 192.168.10.20 hostname: servera.example.com ------------------------------------------------ managed node(관리대상) : server3.example.com NIC 타입 및 ip.. 2022. 12. 10.