Discussion:
[ansible-project] Ansible Augeas module
Dimitar Hristov
2015-07-07 13:41:40 UTC
Permalink
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
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7d88d48e-7ca7-4d93-a480-d9f3f6f06e1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Stephen Granger
2015-07-08 19:48:26 UTC
Permalink
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
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
Post by Dimitar Hristov
Hi Guys,
I'm having some issues implementing the augeas module for ansible. I'm
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
msg: Could not import python augeas module. Please install augeas related
packages and augeas python bindings.
Any ideas what am I missing?
Regards,
Dimitar
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/7d88d48e-7ca7-4d93-a480-d9f3f6f06e1b%40googlegroups.com
<https://groups.google.com/d/msgid/ansible-project/7d88d48e-7ca7-4d93-a480-d9f3f6f06e1b%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Steve
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2Bemtqsu_FWrU1PNWFCXXpzJjHpkwxTg5%3DSXYWp8AHhUwwboUw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Dimitar Hristov
2015-07-13 11:08:36 UTC
Permalink
Hi Steve,

yes, 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
Post by Stephen Granger
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
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
Post by Dimitar Hristov
Hi Guys,
I'm having some issues implementing the augeas module for ansible. I'm
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
msg: Could not import python augeas module. Please install augeas related
packages and augeas python bindings.
Any ideas what am I missing?
Regards,
Dimitar
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/7d88d48e-7ca7-4d93-a480-d9f3f6f06e1b%40googlegroups.com
<https://groups.google.com/d/msgid/ansible-project/7d88d48e-7ca7-4d93-a480-d9f3f6f06e1b%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Steve
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+***@googlegroups.com.
To post to this group, send email to ansible-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/680d884a-9f47-4f70-8bb2-8032cf876711%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...