Add pkg refresh for FreeBSD. Create SSH key with shell instead of fancy module. Still looking into how to (safely) get newer ansible on Debian.

This commit is contained in:
2021-02-01 06:52:28 -06:00
parent a68bafd338
commit e3b5d6b915
3 changed files with 13 additions and 5 deletions

View File

@ -1,9 +1,13 @@
---
# SSH keys for day-to-day system usage.
# Debian's ansible is too old to use this.
#- name: Create Root's SSH Key
# openssh_keypair:
# path: /root/.ssh/id_rsa
- name: Create Root's SSH Key
openssh_keypair:
path: /root/.ssh/id_rsa
shell: ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa <<< n
- name: Join System to 1337 Share
shell: ssh-copy-id -f -i /root/.ssh/id_rsa ling@leet