How to Install Ansible on a Linux Server Updated on September 21, 2023 by InMotion Hosting Contributor 1 Minutes, 54 Seconds to Read 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 MethodsPIP (Python Installs Packages)Native Package ManagerVerify Your Installation Ansible Installation Methods Before you begin, open your terminal (or SSH for server installation), ensure you have Python version 2.7 or 3.5+ , and note your Linux server version: cat /etc/release . 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: pip -V Install PIP if needed Install Ansible with PIP: pip install --user ansible Package Manager If you prefer to use your native package manager, follow official Ansible documentation for your operating system (OS) – CentOS, Ubuntu, Debian, Arch Linux, etc. 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 Save your port and IP address to connect to your Ansible Management Container –> Verify Installation Log into your Ansible Container Check Ansible information such as Ansible version, default configuration file location, and Python version: ansible --version After installing your Ansible agent, start to learn Ansible IT automation with your first Ansible playbook (with an Ansible playbook example). Share this Article InMotion Hosting Contributor Content Writer InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals! More Articles by InMotion Hosting Related Articles Ansible and Docker What is Ansible? Ansible vs Terraform Getting Started with Ansible How to Install Ansible on a Linux Server WordPress UltraStack Ansible Playbook Tutorial Using Git to Manage your Workflow Ansible Galaxy and Prebuilt Playbooks Accessing your Ansible Control Node How to Backup Ansible