Dears,
I have a doubt, I new verify if exist a service on systemd with playbook.
My part code:
- name: Stop service puppet-agent
 service:
 name: puppet
 state: stopped
 enabled: no
How Can I verify if existe puppet-agent on systemd, if exists I need to disable service, if no, I would like to pass for next configuration. Any suggestion?