Provision SSH keys with ansible now

This commit is contained in:
Jake Howard
2020-05-23 11:04:50 +01:00
parent 7e534e52e1
commit 09418cffb0
2 changed files with 9 additions and 0 deletions

View File

@ -24,6 +24,14 @@
become: true
register: sshd_config
- name: Set up authorized keys
authorized_key:
user: "{{ user }}"
state: present
key: "{{ item }}"
with_file:
- ssh-keys/ps.pub
- name: Enable SSH
service:
name: sshd