Hi,
I created playbook for “sudo systemctl start qdrouterd.service” but its not working in Ansible tower and throwing error “ERROR! ‘service’ is not a valid attribute for a Play”. I mentioned below play for systemctl. I also declared state=restarted. Please assist me.
- name: Start service qdrouterd.service
service:
name: qdrouterd.service
state: started
use: service
tags:
start
Regards,
Pradeep