• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

Roger Perkin

Network Automation Architect

  • Network Automation
    • Network Automation Courses
    • What is NetDevOps?
    • Workflow Orchestration
    • Ansible Automation Platform
    • Ansible Workshop
    • What is Network Automation?
    • Network Automation Tools
    • ContainerLab
    • Ansible Training
      • What is Ansible?
      • Ansible Tutorial for Beginners
      • Ansible Network Automation
      • Ansible Hosts File
    • Python Network Automation
      • Nornir
      • Python Network Automation Course
      • Python for Network Engineers
      • Python VENV / Virtual Environment Tutorial
      • Python Tutorial for Beginners
      • pyATS
    • Network Source of Truth
      • NetBox Training
      • Infrahub
    • NetDevops
    • DevOps Tutorial
      • Git Training
      • Terraform Training
      • Linux Training
      • Kubernetes Training
      • Devops Training Course
      • Azure Devops Training
    • Terraform
    • GIT
      • Git Commands
      • What is GitHub?
    • Docker Training
    • Confluence
    • Microsoft Azure
  • Cisco
    • ISE
    • SD WAN Training
    • Password Recovery
    • Software-Upgrade-Guides
    • BGP
    • Data Center
    • WIRELESS
  • CCIE
  • Blog
  • About
    • My Red Special Guitar
  • Contact

Where are Ansible Modules Stored?

Home » Network Automation » Ansible

I had an issue with one of my Ansible modules recently and needed to make a change so I needed to locate the Python module.

It was onto google searching “Where are Ansbile Modules Stored?” I could not find any information around this question.

So after a lot of research I found the answer and will detail it below.

Where are Ansible Modules Stored?

Ansible modules are basically blocks of Python code and the one I needed to edit was ios_config.py

I am running Ansible on Ubuntu so I just run one simple command

where are ansible modules stored screenshot from ubuntu
locate ios_config.py

This brings back the following result

/usr/lib/python2.7/dist-packages/ansible/modules/core/network/ios/ios_config.py

So I just need to go to this location and edit the file!

Where are Ansible Playbooks Stored?

By default most of the time people will save playbooks in the root of the ansible folder /etc/ansible

But Ansible playbooks can be stored anywhere – I personally store mine in /etc/ansible/playbooks

More Ansible Tutorials 


ansible network automation course

If you enjoyed this then please check out my other Ansible posts:

  • Ansible Cisco Tutorial – Router Configuration Backup
  • Ansible Hosts File
  • Ansible vs Python – Which one should you learn?
  • Ansible Vault
  • Cisco IOS upgrade using Ansible
  • AnsibleFest London Review
  • How to install Ansible Tower
  • What are the advantages of using Ansible Roles
  • What is Ansible?
  • Ansible IOS Command Example
Category: Ansible Network Automation
ansible course for network engineers
Get Access to my Ansible Course NOW
Previous Post:What is VXLAN? – Virtual Extensible LAN
Next Post:19 Best Study Tips for Examsstudy tips - revise in the library girl

Sidebar

Hi I'm Roger Perkin,
Based in the UK working as a Network Automation Architect, CCIE #50038
About Roger | Twitter | Linkedin

python course for network engineers

More Ansible

  • What is Ansible?
  • AWX
  • Ansible Template Module
  • Ansible Vault Tutorial
  • Ansible vs Python Scripts
  • Advantages of Ansible Roles
  • Ansible Hosts File Tutorial
  • How to install Ansible Tower
  • Ansible Training
  • Ansible Cisco IOS Command
  • Use Ansible to Backup Cisco Config
  • Where are Ansible Modules Stored?
  • AnsibleFest London Review

Topics

Network Automation
Ansible
Python for Network Automation
CCIE
Cisco ISE
F5 Certification
BGP
OSPF
Network Automation Conferences
auvik promo banner
Pluralsight Trial

Git for Network Engineers

Ansible vs Nornir

Start learning today with my Network Automation Courses

Master Ansible, Python, Git, Nornir, Jenkins and more..


Buy me a coffeeBuy me a coffee

ansible network automation course

Have you seen my YouTube Channel?

YouTube Subscribe

Let’s get started

Take a look at my premium courses on Ansible, Nornir & Git or buy them all with the Network Automation Bundle!

Network Automation Courses

Navigation

Python VENV Tutorial
Python for Network Engineers

Network Automation
Network Automation Courses
Network Discovery Tools
Network Automation Conferences
Ansible Training
What is Ansible?
Devops Tutorial
Network Source of Truth
DevOps Glossary
Network Monitoring Software

Contact

Contact

Get in touch with me here

[email protected]

  • Twitter
  • LinkedIn
  • YouTube
Buy me a coffeeBuy me a coffee

Copyright © 2025 · Roger Perkin · All Rights Reserved · Privacy Policy – Terms