You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initial run of rsyslog playbook fails against (target) freshly created Ubuntu 24.04 (server edition) with such error:
TASK [debops.debops.rsyslog : Create required system user] *******************************************************
task path: /home/ansible/.ansible/collections/ansible_collections/debops/debops/roles/rsyslog/tasks/main.yml:52
fatal: [vm-test]: FAILED! => {"changed": false, "msg": "usermod: user syslog is currently used by process 638\n", "name": "syslog", "rc": 8}
Workaround is to stop syslog.socket temporary (which triggers rsyslog.service which starts PID 638 mentioned in usermod error message) via systemctl and then run rsyslog playbook which then succeeds and changes something via this particular task.
After that, additional runs of rsyslog playbook succeed without any workarounds (there are no changes detected anymore during this task), so it's only initial run that is affected.
Thanks!
Ansible controller:
Ubuntu 22.04 (server edition)
ansible-core 2.16.6
ansible 9.5.1
Debops 3.1.0 (installed via ansible-galaxy)
Target VM (vm-test):
Ubuntu 24.04 (server edition)
The text was updated successfully, but these errors were encountered:
Good to know there is a workaround! I had configured rsyslog__unprivileged: False for newer 24.04 servers to get around this same issue, but was hoping to come back to it at some point to re-enable things. Neither option is great though since it breaks that first site install.
Hi,
Initial run of
rsyslog
playbook fails against (target) freshly created Ubuntu 24.04 (server edition) with such error:More verbose output:
Workaround is to stop
syslog.socket
temporary (which triggersrsyslog.service
which starts PID638
mentioned inusermod
error message) viasystemctl
and then runrsyslog
playbook which then succeeds and changes something via this particular task.After that, additional runs of
rsyslog
playbook succeed without any workarounds (there are no changes detected anymore during this task), so it's only initial run that is affected.Thanks!
Ansible controller:
Target VM (
vm-test
):The text was updated successfully, but these errors were encountered: