앤시블 썸네일형 리스트형 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 availableMem: 3.8G 162M 2.7G 540K 997M 3.4GSwap: 0B 0B 0Bcommand 모듈$ ansible db1 -m command -a "cat /etc/passwd"db1 | CHANGED | rc=0 >>r.. 더보기 Ansible을 설치하고 구성하는 방법 Ansible을 설치하고 구성하는 방법1. EPEL 패키지 설치EPEL은 Extra Packages for Enterprise Linux의 약어로 여러 추가 소프트웨어를 제공합니다.sudo yum install epel-release2. Ansible 패키지 설치sudo yum install ansible3. Ansible 버전 확인ansible --versionansible 2.2.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides4. SSH Keygen 설정ssh-keygen -t rsa -b 4096 -C "root@ass01"5. Ansible 키 교환username과 ma.. 더보기 이전 1 다음