Aah yes, that did the trick; lesson learned. Thanks.

Colin.

On Saturday, 20 February 2016 16:41:24 UTC, Matt Martz wrote:
>
> `notify` is indeed not a parameter of the `template` module.
>
> Effectively this error is stating that you have indented your `notify` too 
> far.  It should be directly aligned with `template` and `name` and not 
> nested under `template`
>
> On Friday, February 19, 2016, Colin Anderson <[email protected] 
> <javascript:>> wrote:
>
>> 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
>>  
>> <https://groups.google.com/d/msgid/ansible-project/6ebd6231-4a94-47ba-99a4-c01cb58a9379%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> Matt Martz
> @sivel
> sivel.net
>
>

-- 
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/956683f7-7800-472a-9ffc-167d502847a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to