When I start the httpd servicefrom commandline, it works without an issue.
When I use this in a playbook:
- name: Start HTTPD
become: root
service:
name: httpd
state: started
I get this error message
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg":
"Syntax
error on line 292 of /etc/httpd/conf/httpd.conf:\nDocumentRoot
'/var/www/html' is not a directory, or is not readable\n"}
I have to say that my /var/www is a symbolic link to /var/apacecontent/www.
But why would ansible complain when I can easily start from command line :(
Is there a way to avoid this?
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/b6f84120-a23e-4268-8e6e-572fe9c983de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.