name: Workaround for systemd bug
shell: service jboss start && chkconfig jboss on**
name: Enable JBoss to be started at boot
service: name=jboss enabled=yes state=started
Otherwise the task Enable Jboss to be started at boot throw this error:
TASK [jboss-standalone : Enable JBoss to be started at boot] *******************
fatal: [jboss02]: FAILED! => {"changed": false, "failed": true, "msg": "Could not find the requested service "'jboss'": "}
fatal: [jboss01]: FAILED! => {"changed": false, "failed": true, "msg": "Could not find the requested service "'jboss'": "}
to retry, use: --limit @/var/lib/awx/projects/ansible-demo/site.retry