리눅스
[draft] macOS에서 Ansible 설치하는 방법
SangChul Dot Kr Blog
2026. 2. 28. 14:26
macOS에서 Ansible 설치하는 방법
테스트 환경
macOS 버전 확인
system_profiler SPSoftwareDataType | egrep 'System Version'
$ system_profiler SPSoftwareDataType | egrep 'System Version'
System Version: macOS 12.5 (21G72)
Ansible 설치(Homebrew Install)
Homebrew를 통한 Ansible 패키지 검색
- Homebrew 저장소에 등록된 Ansible 관련 패키지를 확인합니다.
brew search ansible
$ brew search ansible
==> Formulae
ansible ansible-cmdb ansible-language-server ansible-lint ansible@2.8 ansible@2.9
==> Casks
ansible-dk
Ansible 패키지 정보 확인
- 설치 전 Ansible 패키지 상세 정보를 확인합니다.
brew info ansible
$ brew info ansible
ansible: stable 5.7.1 (bottled), HEAD
Automate deployment, configuration, and upgrading
https://www.ansible.com/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/ansible.rb
License: GPL-3.0-or-later
==> Dependencies
Build: pkg-config ✔, rust ✔
Required: libyaml ✘, openssl@1.1 ✘, python@3.10 ✘, six ✔
==> Options
--HEAD
Install HEAD version
==> Analytics
install: 59,505 (30 days), 159,547 (90 days), 607,420 (365 days)
install-on-request: 58,821 (30 days), 157,531 (90 days), 598,085 (365 days)
build-error: 1 (30 days
Ansible 설치
- Homebrew를 이용하여 Ansible을 설치합니다.
brew install ansible
$ brew install ansible
Running `brew update --preinstall`...
...
==> rust
zsh completions have been installed to:
/opt/homebrew/share/zsh/site-functions
설치 과정 중 의존성 패키지(Python, OpenSSL 등)는 자동으로 함께 설치됩니다.
Ansible 설치 확인 및 버전 정보
- 설치 완료 후 Ansible 버전을 확인합니다.
ansible --version
$ ansible --version
ansible [core 2.13.2]
config file = None
configured module search path = ['/Users/test/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /opt/homebrew/Cellar/ansible/6.2.0/libexec/lib/python3.10/site-packages/ansible
ansible collection location = /Users/test/.ansible/collections:/usr/share/ansible/collections
executable location = /opt/homebrew/bin/ansible
python version = 3.10.6 (main, Aug 8 2022, 04:20:17) [Clang 13.1.6 (clang-1316.0.21.2.5)]
jinja version = 3.1.2
libyaml = True
설치 정보 재확인
- 설치 후 다시 한 번 패키지 정보를 확인할 수 있습니다.
brew info ansible

참고URL
- https://github.com/ansible/ansible
- https://docs.ansible.com/ansible/devel/roadmap/
- https://docs.ansible.com/ansible/devel/roadmap/ROADMAP_2_13.html