Provision remote f2b key with ansible

This commit is contained in:
Jake Howard
2022-01-21 22:11:49 +00:00
parent e8d4244946
commit 6db0500e1b
5 changed files with 53 additions and 2 deletions

View File

@ -25,3 +25,10 @@
mode: 0755
become: true
register: sshd_config
- name: Set up authorized keys
ansible.posix.authorized_key:
user: "{{ f2b_user }}"
state: present
key: "{{ lookup('file', 'files/f2b_key.pub') }}"
become: true