|
31 | 31 | * `ssh_keys_private_keys.{n}.group`: [default: `owner`]: The name of the group that should own the file
|
32 | 32 | * `ssh_keys_private_keys.{n}.mode`: [default: `0600`]: The UNIX permission mode bits of the file
|
33 | 33 | * `ssh_keys_private_keys.{n}.src`: [required]: The local path of the key
|
34 |
| -* `ssh_keys_private_keys.{n}.dest`: [default: `id_rsa`]: The remote path of the key (relative to `home/.ssh/`) |
| 34 | +* `ssh_keys_private_keys.{n}.dest`: [default: `src | basename`]: The remote path of the key (relative to `home/.ssh/`) |
35 | 35 | * `ssh_keys_private_keys.{n}.dest_absolute`: [optional]: The remote path of the key
|
36 | 36 | * `ssh_keys_private_keys.{n}.dest_managed`: [default: `true`]: Whether or not the remote path of the key should be created
|
37 | 37 | * `ssh_keys_private_keys.{n}.state`: [default: `present`]: State
|
|
41 | 41 | * `ssh_keys_public_keys.{n}.group`: [default: `owner`]: The name of the group that should own the file
|
42 | 42 | * `ssh_keys_public_keys.{n}.mode`: [default: `0644`]: The UNIX permission mode bits of the file
|
43 | 43 | * `ssh_keys_public_keys.{n}.src`: [required]: The local path of the key
|
44 |
| -* `ssh_keys_public_keys.{n}.dest`: [default: `id_rsa.pub`]: The remote path of the key (relative to `home/.ssh/`) |
| 44 | +* `ssh_keys_public_keys.{n}.dest`: [default: `src | basename`]: The remote path of the key (relative to `home/.ssh/`) |
45 | 45 | * `ssh_keys_public_keys.{n}.dest_absolute`: [optional]: The remote path of the key
|
46 | 46 | * `ssh_keys_public_keys.{n}.dest_managed`: [default: `true`]: Whether or not the remote path of the key should be created
|
47 | 47 | * `ssh_keys_public_keys.{n}.state`: [default: `present`]: State
|
|
74 | 74 | comment: RSA key
|
75 | 75 | ssh_keys_private_keys:
|
76 | 76 | - owner: root
|
77 |
| - src: ../../../files/ssh-keys/id_rsa |
| 77 | + src: "{{ playbook_dir }}/files/ssh-keys/id_rsa" |
78 | 78 | ssh_keys_public_keys:
|
79 | 79 | - owner: root
|
80 |
| - src: ../../../files/ssh-keys/id_rsa.pub |
| 80 | + src: "{{ playbook_dir }}/files/ssh-keys/id_rsa.pub" |
81 | 81 | ssh_keys_authorized_keys:
|
82 | 82 | - owner: root
|
83 |
| - src: ../../../files/ssh-keys/id_rsa.pub |
| 83 | + src: "{{ playbook_dir }}/files/ssh-keys/id_rsa.pub" |
84 | 84 | ssh_keys_known_hosts:
|
85 | 85 | - hostname: github.com
|
86 | 86 | enctype: ssh-rsa
|
|
0 commit comments