Hi,
I'm trying to run a playbook that installs and restarts a tomcat instance
but when I run it it fails with the following message:
TASK [tomcat-datagateway : Configure the tomcat-datagateway server.xml]
********
fatal: [10.10.1.3]: FAILED! => {"changed": true, "failed": true, "msg":
"unsupported
parameter for module: notify"}
I have the following layout for the tomcat-datagateway role:
roles/tomcat-datagateway/
files/
tomcat-datagateway (environment script)
tomcat-datagateway.sh (init.d script)
handlers/
main.yml
tasks/
main.yml
templates/
server.xml
tomcat-users.xml
vars/
main.yml
The relevant part of the tasks/main.yml looks like this (everything up
until this point works fine):
- name: Configure the tomcat-datagateway server.xml
template:
src: server.xml
dest: /home/apiproc/tomcat-datagateway/apache-tomcat-8.0.32/conf
notify: restart tomcat-datagateway
The handlers/main.yml looks like this:
---
- name: restart tomcat-datagateway
service: name=tomcat-datagateway state=restarted
I'm quite new to Ansible so I was wondering if I've missed something out
perhaps?
Thanks,
Colin.
--
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/6ebd6231-4a94-47ba-99a4-c01cb58a9379%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.