
PLAY [Test Log Server.] ********************************************************

TASK [Run commands.] ***********************************************************
changed: [log_server_01] => (item=rm -rf /var/log/remote/localhost/*)
[ERROR]: Task failed: Module failed: The command exited with a non-zero return code.
Origin: /export/scratch/collections/ansible_collections/vbotka/freebsd/docs/source/sandbox/925/pb-logserver-test.yml:7:7

5   tasks:
6
7     - name: Run commands.
        ^ column 7

failed: [log_server_01] (item=service syslog-ng status) => 
    ansible_loop_var: item
    changed: true
    cmd: service syslog-ng status
    delta: '0:00:01.026788'
    end: '2026-08-29 12:09:46.308892'
    item: service syslog-ng status
    msg: The command exited with a non-zero return code.
    rc: 1
    start: '2026-08-29 12:09:45.282104'
    stderr: ''
    stderr_lines: <omitted>
    stdout: |-
        syslog-ng does not exist in /etc/rc.d or the local startup
        directories (/usr/local/etc/rc.d), or is not executable
    stdout_lines: <omitted>
failed: [log_server_01] (item=loggen -i -S -n 1 localhost 514) => 
    ansible_loop_var: item
    changed: true
    cmd: loggen -i -S -n 1 localhost 514
    delta: '0:00:00.003954'
    end: '2026-08-29 12:09:46.763209'
    item: loggen -i -S -n 1 localhost 514
    msg: The command exited with a non-zero return code.
    rc: 127
    start: '2026-08-29 12:09:46.759255'
    stderr: '/bin/sh: loggen: not found'
    stderr_lines: <omitted>
    stdout: ''
    stdout_lines: <omitted>
changed: [log_server_01] => (item=sleep 2; find /var/log/remote/localhost/ -name *.log | xargs cat)

PLAY RECAP *********************************************************************
log_server_01              : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   

