Skip to content

Installing Ansible

  1. Ensure that Python is installed
  2. Create a new directory called ansible & cd into it

    mkdir ansible && cd $_
    
  3. Create a Python virtual environment

    python3 -m venv venv
    
  4. Activate the virtual environment

    source venv/bin/activate
    
  5. Install Ansible

    pip install ansible
    

Check which packages were installed using the pip freeze command