본문 바로가기
좌충우돌 에러

[Ansible] M1 Mac Ansible 설치

by MFDO 2023. 6. 16.

 

 

Installing Ansible — Ansible Documentation

If you are testing new features, fixing bugs, or otherwise working with the development team on changes to the core code, you can install and run the source from GitHub. Note You should only install and run the devel branch if you are modifying ansible-cor

docs.ansible.com

 

 

1-설치

앤서블은 파이썬의 `pip`를 이용하거나, OS의 패키지 관리 도구를 이용하여 편리하게 설치할 수 있습니다. 파이썬을 이용하여 앤서블 버전을 설정하고 설치 하는 것을 추천합니…

wikidocs.net

 

 

익숙한 형태로 설치하게된다면, arm 계열인 mac은 아래와 같은 오류가 발생한다.

brew install ansible

Error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)!
To rerun under ARM use:
    arch -arm64 brew install ...
To install under x86_64, install Homebrew into /usr/local.

 

 

 

에러 로그에서 제안한 형태로 다시 한 번 설치를 시도해본다.

arch -arm64 brew install ansible

설치중인 모습

 

 

최종적으로 버전을 확인하여, 설치 여부를 확인해보자

ansible --version

 

야호~!

댓글