리눅스 썸네일형 리스트형 앤서블 디렉토리 레이아웃(Directory Layout) 앤서블 디렉토리 레이아웃(Directory Layout) 디렉토리 레이아웃(Directory Layout) production # inventory file for production servers staging # inventory file for staging environment group_vars/ group1.yml # here we assign variables to particular groups group2.yml host_vars/ hostname1.yml # here we assign variables to particular systems hostname2.yml library/ # if any custom modules, put them here (optional) module_ut.. 더보기 ansibe 명령어 ansibe 명령어 ansible : 호스트 집합에 대해 단일 작업 'playbook' 정의 및 실행 ansible-config : 앤서블 구성 보기 ansible-inventory : 앤서블이 보는 대로 구성된 인벤토리를 표시하거나 덤프하는 데 사용됩니다. ansible-playbook : 앤서블 플레이북을 실행하여 대상 호스트에서 정의된 작업을 실행합니다. ansible-doc : 플러그인 문서화 도구 ansible-galaxy : 다양한 역할 및 수집 관련 작업을 수행합니다. ansible ansible -m ping all ansible-config ansible-config init -f vars --disabled ansible-inventory ansible-inventory -i ~/inv.. 더보기 리눅스에서 bash 자동 완성 사용하는 방법 리눅스에서 bash 자동 완성 사용하는 방법 bash-completion은 Bash 셸에서 자동 완성 기능을 제공하는 패키지입니다. 다음은 bash-completion 패키지를 설치하고 사용하는 방법입니다. 설치 방법 Ubuntu/Debian 계열 sudo apt-get install -y bash-completion RHEL/CentOS 계열 sudo yum install -y bash-completion 사용 방법 bash-completion 패키지가 설치된 후, Bash를 재시작하거나 다음과 같이 source 명령어를 사용하여 변경 사항을 적용합니다. source /usr/share/bash-completion/bash_completion 이제 Bash에서 명령어, 옵션, 파일 및 디렉토리 이름 등.. 더보기 Ansible 모듈 리스트 Ansible 모듈 리스트 Ansible은 수많은 모듈을 제공합니다. 각 모듈은 특정 기능을 수행하며 Ansible의 다양한 작업에 사용됩니다. 일반적인 Ansible 모듈의 목록은 다음과 같습니다. command: 쉘 명령어를 실행합니다. shell: 쉘 명령어를 실행합니다. copy: 로컬 머신에서 원격 호스트로 파일을 복사합니다. file: 파일 또는 디렉토리를 만들고 소유자, 그룹 및 권한을 변경합니다. template: 로컬 파일을 사용하여 원격 호스트에 파일을 만듭니다. service: 서비스 상태를 관리합니다. apt, yum, dnf, zypper: 패키지를 설치, 업그레이드 또는 삭제합니다. user: 사용자 계정을 만들거나 삭제합니다. group: 그룹을 만들거나 삭제합니다. get_u.. 더보기 이전 1 ··· 8 9 10 11 12 13 14 ··· 25 다음