aboutsummaryrefslogtreecommitdiffstats
path: root/roles/root_authorized_keys/README.md
blob: a03822d0043dad348ffeeaeb1890bfb8b2cc8f59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Root Authorized Keys
====================

Description
-----------

The `root_authorized_keys` role adds SSH public keys to the root user's
`authorized_keys` file.


Variables
---------

This role **accepts** the following variables:

Variable               | Default | Description
-----------------------|---------|------------
`root_authorized_keys` | `[]`    | List of SSH pubkeys


Usage
-----

Example playbook:

````yaml
- name: set authorized_keys for root user
  hosts: all
  roles:
    - role: root_authorized_keys
      vars:
        root_authorized_keys:
          - ssh-ed25519 AAAA...
          - ssh-ed25519 AAAA...
````