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
I'm running the examples/playbook_single_host_deploy.yml against a CentOS 8 host. It fails when starting the systemd services:
TASK [lae.netbox : Start and enable NetBox' socket and service] ******************************************************
changed: [sl8.example.com] => (item=netbox.socket)
failed: [sl8.example.com] (item=netbox.service) => {"ansible_loop_var": "item", "changed": false, "item": "netbox.service", "msg": "Unable to start service netbox.service: Job for netbox.service failed because the control process exited with error code.\nSee \"systemctl status netbox.service\" and \"journalctl -xe\" for details.\n"}
journalctl -e has only this information:
Dec 15 15:27:13 sl8 env[29752]: /usr/bin/env: ‘uwsgi’: Permission denied
Apparently the PATH is not set for the netbox user configured in the systemd unit:
Apparently not PATH is the problem, but /usr/local/bin/uwsgi having 700 permissions and therefore only readable by root, not the netbox user.
Adding umask: "0022" to the pip: module call in tasks/main.yml fixes that problem.
I'm running the
examples/playbook_single_host_deploy.yml
against a CentOS 8 host. It fails when starting the systemd services:journalctl -e
has only this information:Apparently the PATH is not set for the
netbox
user configured in the systemd unit:26a4226 seems to have been intended to fix this issue, but did not cover the systemd unit.
The text was updated successfully, but these errors were encountered: