2021-02-01 05:03:27 -06:00
|
|
|
---
|
2021-02-01 05:15:45 -06:00
|
|
|
# SSH keys for day-to-day system usage.
|
2021-02-01 05:03:27 -06:00
|
|
|
|
2021-02-01 06:52:28 -06:00
|
|
|
# Debian's ansible is too old to use this.
|
|
|
|
#- name: Create Root's SSH Key
|
|
|
|
# openssh_keypair:
|
|
|
|
# path: /root/.ssh/id_rsa
|
|
|
|
|
2021-02-01 07:19:51 -06:00
|
|
|
- name: SSH Key | Root | Create
|
2021-02-01 07:04:41 -06:00
|
|
|
shell: ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa <<< n
|
2021-02-01 07:16:17 -06:00
|
|
|
args:
|
2021-02-02 21:05:46 -06:00
|
|
|
executable: "{{ bash_exec.stdout }}"
|
2021-02-01 07:05:19 -06:00
|
|
|
ignore_errors: yes
|
2021-02-01 07:04:41 -06:00
|
|
|
|
2021-02-01 07:19:51 -06:00
|
|
|
- name: SSH Key | Root | Copy to 1337
|
2021-02-02 21:00:06 -06:00
|
|
|
shell: ssh-copy-id -i /root/.ssh/id_rsa ling@leet
|