Hello:
On Mon, Feb 17, 2020 at 8:36 AM Bala Mutyam <[email protected]> wrote:
> Hi all,
>
> Anisble Version: ansible 2.7.7
>
>
> I'm configuring auditd on centos7 but the auditd service is failing to
> restart.
>
> Handler:
>
> - name: centos7 restart auditd
> become: yes
> command: service auditd restart
>
> Error:
>
> FAILED! => {"changed": false, "msg": "Unable to restart service auditd:
> Failed to restart auditd.service: Operation refused, unit auditd.service
> may be requested by dependency only (it is configured to refuse manual
> start/stop).\nSee system logs and 'systemctl status auditd.service' for
> details.\n"}
>
> Have you tried to run "systemctl restart auditd" manually as root in your
shell? What's the ouput of that command?
Have you checked at /var/log/messages about any systemctl or auditd errors
after running such ansible task?
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAA3McK-K_Bty3WEE_RJ2WpvS4vm6OBVmhQ0v5qR42LUhjzGkdA%40mail.gmail.com.