# Ansible Augeas module

**URL:** <https://forum.ansible.com/t/ansible-augeas-module/18701>\
**Category:** Ansible Project\
**Created:** [July 7, 2015, 1:41pm UTC](https://forum.ansible.com/t/ansible-augeas-module/18701 "2015-07-07T13:41:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dimitar\_Hristov](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@Dimitar\_Hristov](https://forum.ansible.com/u/Dimitar_Hristov)\
**Post date:** [July 7, 2015, 1:41pm UTC](https://forum.ansible.com/t/ansible-augeas-module/18701/1 "2015-07-07T13:41:40Z")

</div>

Hi Guys,

I’m having some issues implementing the augeas module for ansible. I’m running it on CentOS 6.6 and I have the following packages installed:

augeas.x86\_64  
python-augeas.noarch  
augeas-libs.x86\_64  
augeas-devel.x86\_64

I’ve added augeas.py to /usr/lib/python2.6/site-packages/ansible/modules/custom and when I run my playbook I get the following error:

msg: Could not import python augeas module. Please install augeas related packages and augeas python bindings.

Any ideas what am I missing?

Regards,  
Dimitar

---

<div class="post-metadata">

**Author:** ![viper233](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/viper233/32/2060_2.png) [@viper233](https://forum.ansible.com/u/viper233)\
**Post date:** [July 8, 2015, 7:48pm UTC](https://forum.ansible.com/t/ansible-augeas-module/18701/2 "2015-07-08T19:48:26Z")

</div>

This doesn’t answer your question but is it possible to use a template or lineinfile instead of the ?

Opinions on augeas  
[https://twitter.com/laserllama/status/416641643933347840](https://twitter.com/laserllama/status/416641643933347840)

The complexity and issues with augeas don’t seem to fit in with the intentions (IMO) of Ansbile.

I’m assuming that you are manipulating the file across different tasks? As a quick suggestion are you able to separate the logic for this config manipulation into a separate role? or playbook to include?

The module I’m assuming you are referring to  
[https://github.com/paluh/ansible-augeas](https://github.com/paluh/ansible-augeas)

---

<div class="post-metadata">

**Author:** ![Dimitar\_Hristov](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@Dimitar\_Hristov](https://forum.ansible.com/u/Dimitar_Hristov)\
**Post date:** [July 13, 2015, 11:08am UTC](https://forum.ansible.com/t/ansible-augeas-module/18701/3 "2015-07-13T11:08:36Z")

</div>

Hi Steve,

yes, [https://github.com/paluh/ansible-augeas](https://github.com/paluh/ansible-augeas) is the module I was targeting and testing. I was planning to use to for custom modifications of some configuration files, but instead of that I decided to go over with templates - whenever I need a change, I will make it in the certain template and replicate it with a task to the servers.

Anyway, ansible-augeas is pretty interesting module, and I will be happy if one day I have the chance to work with it.

Thanks,  
Dimitar
