Skip to content
This repository was archived by the owner on Dec 26, 2020. It is now read-only.

Commit 689f220

Browse files
authored
Update README.md
1 parent dc818d6 commit 689f220

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,20 @@ If you find this isn't enough, feel free to activate the attributes `cbc_require
121121

122122
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.
123123

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.
137+
124138
## Contributing
125139

126140
See [contributor guideline](CONTRIBUTING.md).

0 commit comments

Comments
 (0)