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

Commit 4a11070

Browse files
authored
README: New section on server port and idempotency
Add section called "Changing the default port and idempotency" and reference to role ssh-hardening-fallback, a wrapper around this role which implements a fallback to port 22 when the configured port is unreachable. Signed-off-by: Nuno Godinho <user@nunogodinho.com>
1 parent 1b6623b commit 4a11070

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ Example playbook:
103103
- "AcceptEnv LANG"
104104
```
105105

106+
## Changing the default port and idempotency
107+
108+
This role uses the default port 22 or the port configured in the inventory to connect to the server. If the default `ssh` port is changed via `ssh_server_ports`, once the ssh server is restarted, it will still try to connect using the previous port. In order to run this role again on the same server the inventory will have to be updated to use the new ssh port.
109+
110+
If idempotency is important, please consider using role [`ssh-hardening-fallback`](https://github.com/nununo/ansible-ssh-hardening-fallback), which is a wrapper around this role that falls back to port 22 if the configured port is unreachable.
111+
106112
## Example Playbook
107113

108114
- hosts: localhost

0 commit comments

Comments
 (0)