Installing Ansible is the first step to automating tasks to save time. Below we cover how to get started with Ansible depending on your operating system (OS):
- Local Installation Methods
- Verify Your Installation
Ansible Installation Methods
Ansible PIP Installation
We recommend you consider using Python Installs Packages (PIP) to install Ansible, especially if you’re already using it. Python Package Index is updated more regularly than many Linux package management systems. This also guarantees compatibility with InMotion Hosting Ansible Galaxy roles which require PIP packages.
- Check if it’s installed:
- Install PIP if needed
- Install Ansible with PIP:
pip install --user ansible
Server Installation with our Ansible Management Container
InMotion Hosting customers on a Cloud Server or Dedicated Bare-Metal Server can get started with our Ansible Management Container in AMP. Running your Ansible tasks on a dedicated Ansible agent ensures stable network connectivity, while freeing up your local resources. It also includes the GNU Screen and Tmux terminal multiplexers to ensure your playbooks complete even if the network connection ends prematurely and more.
This is great for users who may want technical assistance from our Managed Hosting team. We’re familiar with the configuration. The Ansible Agent is highly available and includes all dependencies required to deploy software from our Ansible Catalog.
Create a snapshot in Account Management Panel (AMP) before continuing in case anything goes wrong.
- Log into AMP
- Click the Ansible button under Manage My Account
- Add your SSH Key
- On the Ansible page, select Start Ansible Container
- Save your port number and IP address to connect to your Ansible container
- Log into your Ansible Container
- Check Ansible information such as Ansible version, default configuration file location, and Python version:
After installing your Ansible agent, start to learn Ansible IT automation with your first Ansible playbook (with an Ansible playbook example).