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

Commit b4b3064

Browse files
authored
Merge pull request #307 from nununo/master
README: New section on server port and idempotency
2 parents 1b6623b + 4a11070 commit b4b3064

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)