본문 바로가기

728x90

전체 글

[Ansible] setup 모듈(setup module) Ansible setup 모듈 : ansible facts를 수집하는 setup 모듈 ansible facts : ansible facts는 운영체제, IP주소, 연결된 파일시스템 등을 포함하여 원격시스템과 관련된 데이터 setup 모듈 사용 방법 ansible -i inventory/hosts -m setup localhost $ ansible -i inventory/hosts -m setup localhost bvm41 | SUCCESS => { "ansible_facts": { "ansible_all_ipv4_addresses": [ "192.168.56.11", "192.168.101.199" ], "ansible_all_ipv6_addresses": [ "fe80::a00:27ff:fe9d:ea.. 더보기
[리눅스] zsh 프롬프트 전체 경로 대신 현재 디렉터리만 표시하는 방법(agnoster theme) zsh 프롬프트 전체 경로 대신 현재 디렉터리만 표시하는 방법 vim .oh-my-zsh/themes/agnoster.zsh-theme $ vim .oh-my-zsh/themes/agnoster.zsh-theme ... # Dir: current working directory prompt_dir() { #prompt_segment blue $CURRENT_FG '%~' #prompt_segment blue $CURRENT_FG '%2~' #prompt_segment blue $CURRENT_FG ' %25 더보기
[명령어] sipcalc 명령어 리눅스 sipcalc 명령어 sipcalc 패키지 설치 $ yum install -y sipcalc sipcalc 사용 예제 ### 192.168.0.0/24 서브넷 정보 $ sipcalc 192.168.0.0/24 -[ipv4 : 192.168.0.0/24] - 0 [CIDR] Host address - 192.168.0.0 Host address (decimal) - 3232235520 Host address (hex) - C0A80000 Network address - 192.168.0.0 Network mask - 255.255.255.0 Network mask (bits) - 24 Network mask (hex) - FFFFFF00 Broadcast address - 192.168.0.255 .. 더보기
[명령어] curl 명령어 curl 명령어 : 원격 서버 (FTP, HTTP 등)에서 파일을 가져 오는 유틸리티 curl 패키지 설치 $ yum install -y curl $ curl --version curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.53.1 zlib/1.2.7 libidn/1.28 libssh2/1.8.0 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz unix-.. 더보기

728x90