2025/02/04 썸네일형 리스트형 [draft] Ansible Pull 모드를 사용하여 NGINX를 설치하는 방법 Ansible Pull 모드를 사용하여 NGINX를 설치하는 방법Ansible Pull 모드는 중앙 관리 서버에서 명령을 푸시하는 대신 각 클라이언트가 자신의 구성 정보를 풀(pull)하여 적용하는 방식입니다.Git 저장소 준비Ansible pull 모드는 Git에서 플레이북을 가져오므로 Git 서버 또는 GitHub, GitLab 등의 저장소에 플레이북을 올립니다. 로컬에서 Git 저장소를 생성합니다.mkdir -p ~/ansible-pull && cd ~/ansible-pullgit init플레이북 작성nginx-playbook.yml을 작성하여 NGINX를 설치하는 작업을 정의합니다.vim nginx-playbook.yml- hosts: localhost become: yes tasks: .. 더보기 [draft] 우분투에 Ansible을 설치하는 방법 우분투 24.04에 Ansible을 설치하는 방법테스트 환경$ lsb_release -dDescription: Ubuntu 24.04.1 LTS시스템 패키지 업데이트sudo apt updateAnsible 패키지 설치Ubuntu 24.04에서는 최신 버전의 Ansible이 기본적으로 제공되지 않을 수 있습니다.Ansible의 공식 PPA(Personal Package Archive)를 추가하고 설치하는 것이 좋습니다.sudo apt install software-properties-commonsudo add-apt-repository --yes --update ppa:ansible/ansible더보기---cat /etc/apt/sources.list.d/ansible-ubuntu-ansible-noble.. 더보기 [draft] 우분투에서 최신 버전의 Ansible을 설치하는 방법 우분투 24.04에서 최신 버전의 Ansible을 설치하는 방법테스트 환경$ lsb_release -dDescription: Ubuntu 24.04.1 LTSpip를 사용하여 최신 버전 설치시스템 패키지 업데이트sudo apt updatePython3 및 pip3 설치sudo apt install -y python3 python3-pip python-is-python3Ansible 설치--user 옵션은 현재 사용자의 홈 디렉토리에 Ansible을 설치합니다.pip3 install --user ansible환경 변수 설정Ansible의 실행 파일이 PATH에 포함되도록 환경 변수를 설정합니다. 일반적으로 ~/.local/bin 디렉토리에 설치되므로 이 디렉토리를 PATH에 추가합니다.echo 'ex.. 더보기 이전 1 다음