Configuration error: No MPM loaded when using validate in apache role

175 views
Skip to first unread message

Joseph Djomeda

unread,
Oct 9, 2015, 11:27:31 AM10/9/15
to Ansible Project

Hello Guys,

I am sure this is a little issue many of you have already solve but I seem stuck about this rc:1 error:AH00534: apache2: Configuration error: No MPM loaded when I use validate in tempate module of my apache role.

Everything works file when commented out. Looks like so many fix on google , some about making getting the mpm module used (depends on OS) and using the right one, but it seems ubuntu node which I am using is nicely configured with those defaults so I am out of options here.

My work in on pastie.org

Kindly shed some light on what I am doing wrong.

Best Regards,
--
Joseph Kodjo-Kuma Djomeda
check out my pains at : www.mycodingpains.com
We become what we think about ourselves........

Brian Coca

unread,
Oct 9, 2015, 11:33:44 AM10/9/15
to Ansible Project
validate checks the file BEFORE putting it into place, since you are
using a multifile configuration, the validation will always fail as it
is missing the rest of the apache config.


validate is only useful with single file configurations

--
Brian Coca

Joseph Djomeda

unread,
Oct 9, 2015, 11:52:45 AM10/9/15
to Ansible Project
Hello Brian,

Thank you.

--
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-proje...@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/CAJ5XC8nzwE1e7pO9EeQr%3DguO9uGiOHWKSwiyEAPO6UuNHY6JTg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Joseph Djomeda

unread,
Oct 9, 2015, 2:02:05 PM10/9/15
to Ansible Project
Hello All,

I have tried with single configuration this time but it didn't work still. I get the part it checks before but in my case I was not even using it. it's part of a include file task that would get skipped anyway. So am not too sure how to make this compatible with my include_file_based_on_condition bit.

How does that work?

Best Regards,

Brian Coca

unread,
Oct 9, 2015, 2:10:41 PM10/9/15
to Ansible Project
it does not, that is my point


--
Brian Coca
Reply all
Reply to author
Forward
0 new messages