[PYTHON] Install Ansible on Mac

Around this time, I felt that it would be easier to use a Mac as an Ansible server. Anyway, Python is included from the beginning, so I installed Ansible on my Mac.

Python version check

Check the version for the time being.

$ python --version
Python 2.7.5

Mervelicks seems to have 2.7.5 from the beginning, so it's OK.

pip installation

Official reference. http://pip.readthedocs.org/en/latest/installing.html

$ wget https://bootstrap.pypa.io/get-pip.py
$ sudo python get-pip.py

Easy.

Install Ansible

First, put in what Ansible depends on.

Somehow, it seems that the behavior of clang has changed from 5.1 of Xcode, and it seems that it will not work unless you add a long flag like the one below.

ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future

Reference: Updated Redmine of MacOSX 10.9 to 2.5.0 --Basic http://d.hatena.ne.jp/rabbit2go/20140316/1394946822

That's why I installed the one that depends on it.

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install paramiko PyYAML jinja2 httplib2

And I installed Ansible.

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install ansible

Finished smoothly. It was easy because the clang issue was resolved fairly easily.

Recommended Posts

Install Ansible on Mac
Install Tensorflow on Mac
Install pyenv on mac
Install Python on Mac
Install Python 3 on Mac
Install Python 3.4 on Mac
Install Caffe on Mac
Install mecab on mac
Install mecab-python on Mac
Install pygame on python3.4 on mac
Install module on Anaconda (Mac)
Install OpenPose on mac (Catalina)
Install numba on your Mac
Install pandas 0.14 on python3.4 [on Mac]
Install Ansible
Install Django on your Mac
Install pillow on Mac OSX 10.9
[Mac] Tips: Install pyquery on Mac [pyquery]
Install anaconda on Mac → Add Library
How to install mysql-connector-python on mac
Steps to install matplotlib on Mac
Install Sphinx on Mac OS X
Install Python 3.7 Anaconda on MAC, but Python 2
Install Scipy on Mac OS Sierra
Install python3 on Mac (El Capitan)
How to install OpenCV on Mac
Install mitmproxy on Mac OS X
Install VirtualBox on CentOS 7 on VirtualBox (mac + vagrant)
Steps to install python3 on mac
Install pgmagick on Mac OS X 10.9
python on mac
Install opencv on Mac using Anaconda Navigator
How to install drobertadams / toggl-cli on Mac
Install anaconda on a new Mac anyway
Install mecab on Marvericks
Install TensorFlow on Ubuntu
Install python on WSL
Install Faiss on CentOS 7
Install pip on Mavericks
Install Python on Pidora.
Install mongodb on termux
Install Scrapy on python3
Install docker on Fedora31
Pyenv + virtualenv on Mac
Install numba on CentOS 7.2
[Ansible] Install dnf on Centos7 with Python3 interpreter
Install Plone (4.3.6) on MacOSX (10.10.3)
Install PySide2 on Ubuntu
Install Python3.4 on CentOS 6.6
numba installation on mac
Install gensim on Marvericks
Install JModelica on Ubuntu
Install Anaconda on Windows 10
Install numpy on Marvericks
Install python on windows
Install enebular-agent on Chromebook
Install pycuda on Windows10
Install mecab-python on CentOS
Install Python 2.7.3 on CentOS 5.4
Run OpenMVG on Mac
Install aws-cli on MacPorts