title: How to install Ansible 2.4.x with Brew on MacOS Sierra
body: <p><code>brew install ansible</code> installs the current version of Ansible (2.5.x as of this writing). I have an application that requires version 2.4, and does not work with earlier or later versions. <code>brew search ansible</code> results in the following:</p>
  
  <pre><code>==&gt; Searching local taps...
  ansible ✔       ansible-lint      ansible@2.0
  ansible-cmdb    ansible@1.9       terraform-provisioner-ansible
  ==&gt; Searching taps on GitHub...
  homebrew/cask/ansible-dk
  ==&gt; Searching blacklisted, migrated and deleted formulae...
  </code></pre>
  
  <p>Installing <code>ansible@2.0</code> gives me version 2.3.</p>
  
  <p>How do you install version 2.4?</p>
  
  <p>Attempting to install with <code>easy_install</code> + <code>pip</code> results in this which is reportedly caused by a TLS bug with MacOS Sierra 10.12.</p>
  
  <pre><code>➜  ~ sudo easy_install pip
  Searching for pip
  Reading https://pypi.python.org/simple/pip/
  Download error on https://pypi.python.org/simple/pip/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) --     Some packages may not be found!
  Couldn't find index page for 'pip' (maybe misspelled?)
  Scanning index of all packages (this may take a while)
  Reading https://pypi.python.org/simple/
  Download error on https://pypi.python.org/simple/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) --     Some packages may not be found!
  No local packages or download links found for pip
  error: Could not find suitable distribution for Requirement.parse('pip')
  </code></pre>