Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Cannot restart sshd-service due to lack of privileges #81
When invoking this role with:
Got this error when running handler "restart sshd":
This patch fixes this.
I also realized I get this same behaviour on LXC-containers running Ubuntu 16.04, the error is a bit different:
This fixes this issue:
I don't know why the privilege escalation doesn't bubble up to the handler.
Sorry. Should have mentioned it:
ansible@hephaestus:~/KSAnsible$ ansible --version
I wouldn't be surprised there is a Ansible bug.
Thanks for commenting!
This is supposed to be fixed in Ansible 22.214.171.124 (ansible/ansible#17490) but I ran into it just now on that version... the workaround was to put
I've logged a new issue for the regression in 126.96.36.199: ansible/ansible#21139
Thanks for the README update on this @rndmh3ro, that was very useful!