앤시블 썸네일형 리스트형 [Ansible] shell, command, yum, user 모듈 Ansible shell, command, yum, user 모듈 Ansible에서 모듈 사용법 shell 모듈 $ ansible db1 -m shell -a "free -h" db1 | CHANGED | rc=0 >> total used free shared buff/cache available Mem: 3.8G 162M 2.7G 540K 997M 3.4G Swap: 0B 0B 0B command 모듈 $ ansible db1 -m command -a "cat /etc/passwd" db1 | CHANGED | rc=0 >> root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/sbin/nologin ... ec2-user:x:1000:1000:EC2 Defaul.. 더보기 Ansible을 설치하고 구성하는 방법 Ansible을 설치하고 구성하는 방법 1. EPEL 패키지 설치 EPEL은 Extra Packages for Enterprise Linux의 약어로 여러 추가 소프트웨어를 제공합니다. sudo yum install epel-release 2. Ansible 패키지 설치 sudo yum install ansible 3. Ansible 버전 확인 ansible --version ansible 2.2.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides 4. SSH Keygen 설정 ssh-keygen -t rsa -b 4096 -C "root@ass01" 5. Ansible 키 교환 us.. 더보기 이전 1 다음