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
{{ message }}
This repository was archived by the owner on Dec 26, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,6 +121,20 @@ If you find this isn't enough, feel free to activate the attributes `cbc_require
121
121
122
122
This role deactivates SFTP. Ansible uses by default SFTP to transfer files to the remote hosts. You have to set `scp_if_ssh = True` in your ansible.cfg. This way Ansible uses SCP to copy files.
123
123
124
+
**Cannot restart sshd-service due to lack of privileges**
125
+
126
+
If you get the following error when running handler "restart sshd"
127
+
```
128
+
Unable to restart service ssh: Failed to restart ssh.service: Access denied
129
+
```
130
+
or
131
+
```
132
+
failure 1 running systemctl show for 'ssh': Failed to connect to bus: No such file or directory
133
+
```
134
+
either run the playbook as `root` (without `become: yes` at the playbook level), or add `become: yes` to the handler.
135
+
136
+
This is a bug with Ansible: see [here](https://github.com/dev-sec/ansible-ssh-hardening/pull/81) and [here](https://github.com/ansible/ansible/issues/17490) for more information.
0 commit comments