aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 1bd746ff198fe187a6a65a978fe3d00508402529 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Ansible authorize ssh host key role

Role to authorize the host key of `ssh_hostname`.

The role tries to authorize the host key globally at `/etc/ssh/ssh_known_hosts` or
`~/.ssh/known_hosts` as fallback.

## Variables

* `ssh_hostname` the host to authorize
* `use_host_ip_addresses` also authorize the IP addresses reported from DNS
*

## Example Playbook

```yml
---
- hosts: host-pattern
  roles:
    - role: ssh_authorize_host
      ssh_hostname: example.org
```