Brew Ansible

broken image


Cask
Cask

Homebrew's package index. Also known as: ansible@3 Automate deployment, configuration, and upgrading.

My Problem

Brew Cask Install Specific Version

brew install terraform brew install ansible It's important to note that the configuration I used is compatible with Terraform version 0.12. I specifically used 0.12.19. Git log - ansible.rb Select the commit where the version you are interested in is and checkout this formula: git checkout f9466d14ee6e9fa7a - ansible.rb Install that formula: HOMEBREWNOAUTOUPDATE=1 brew install ansible Check the installation of ansible: ansible -version Pin this version of the formula to avoid upgrade. Brew pin ansible. ForgeOps is a collection of ForgeRock resources to help you get started in the cloud. These resources demonstrate how to deploy the ForgeRock Identity Platform on Kubernetes. Ansible Role: Homebrew. Installs Homebrew on MacOS, and configures packages, taps, and cask apps according to supplied variables. If you prefer to manually update packages via brew commands, leave this set to false.

Brew Ansible

When running any ansible command, I see a stack trace similar to:

My Solution

pip install ansible or brew install ansible or yum install ansible or…

Somehow your Ansible Python modules were removed, but the Ansible scripts in your $PATH remained. Install Ansible's python package however makes the most sense for your platform and preferences. E.g. via pip directly or Homebrew or your package manager of choice.

The Long Story

Let's break the error down line by line:

Firewall sophos xg 125 pro. Ansible is just a Python script, so let's check out line 34:

The second line in the stack trace shows that from ansible import context is just another module import in the larger context of the Python application. With that larger context clarified, this error may snap a bit more into focus:

It's just a Python application that can't find a module. If there's no module, let's check with Python to see what packages it knows about:

There's no Ansible package listed. Wait, which version of Python did I just check?

Let's check pip2 just to make sure there's no version weirdness going on:

Brew Ansible Download

Nope, no Ansible. Since I'm on a Mac, let's check Brew just to see what comes back:

Brew ansible command

Homebrew's package index. Also known as: ansible@3 Automate deployment, configuration, and upgrading.

My Problem

Brew Cask Install Specific Version

brew install terraform brew install ansible It's important to note that the configuration I used is compatible with Terraform version 0.12. I specifically used 0.12.19. Git log - ansible.rb Select the commit where the version you are interested in is and checkout this formula: git checkout f9466d14ee6e9fa7a - ansible.rb Install that formula: HOMEBREWNOAUTOUPDATE=1 brew install ansible Check the installation of ansible: ansible -version Pin this version of the formula to avoid upgrade. Brew pin ansible. ForgeOps is a collection of ForgeRock resources to help you get started in the cloud. These resources demonstrate how to deploy the ForgeRock Identity Platform on Kubernetes. Ansible Role: Homebrew. Installs Homebrew on MacOS, and configures packages, taps, and cask apps according to supplied variables. If you prefer to manually update packages via brew commands, leave this set to false.

When running any ansible command, I see a stack trace similar to:

My Solution

pip install ansible or brew install ansible or yum install ansible or…

Somehow your Ansible Python modules were removed, but the Ansible scripts in your $PATH remained. Install Ansible's python package however makes the most sense for your platform and preferences. E.g. via pip directly or Homebrew or your package manager of choice.

The Long Story

Let's break the error down line by line:

Firewall sophos xg 125 pro. Ansible is just a Python script, so let's check out line 34:

The second line in the stack trace shows that from ansible import context is just another module import in the larger context of the Python application. With that larger context clarified, this error may snap a bit more into focus:

It's just a Python application that can't find a module. If there's no module, let's check with Python to see what packages it knows about:

There's no Ansible package listed. Wait, which version of Python did I just check?

Let's check pip2 just to make sure there's no version weirdness going on:

Brew Ansible Download

Nope, no Ansible. Since I'm on a Mac, let's check Brew just to see what comes back:

Brew Ansible Command

I'm not really sure what happened. I've got the Ansible scripts in my path, but I don't have the python modules. I prefer to install Ansible via pip so I simply pip install ansible and everything was right with the world.





broken image