Fix: Issue running Ansible Tasks - Cannot get property 'template'

Hello,

If you run into the following error when running an Ansible task in Morpheus, a simple fix for it is to edit the Ansible task in Morpheus and re-save. Re-saving the Ansible task should correctly associate missing task options that are required for the Ansible task to run.

Error:

[RxCachedThreadScheduler-6] executeContainerTask error: java.lang.NullPointerException: Cannot get property ‘template’ on null object java.lang.NullPointerException: Cannot get property ‘template’ on null object at com.morpheus.task.AbstractTaskService.buildTaskScript(AbstractTaskService.groovy:47) [4 skipped] at com.morpheus.task.AbstractTaskService$buildTaskScript$0.callCurrent(Unknown Source) at com.morpheus.task.AnsibleTaskService.executeContainerTask(AnsibleTaskService.groovy:107) at

Many thanks!

Thanks for sharing :slight_smile: