klips/ansible/roles/core/tasks/configure-ssh.yml

26 lines
507 B
YAML
Raw Normal View History

2019-08-29 09:35:19 +00:00
---
- name: Copy server MOTD
template: src=files/motd dest=/etc/motd
- name: Configure PAM
template: src=files/sshd dest=/etc/pam.d/sshd
- name: Add authusers file
copy:
dest: "/etc/authusers"
content: |
user1
user2
- name: Add authorized_yubikeys file
copy:
dest: "/etc/ssh/authorized_yubikeys"
content: |
user:cccckey1cccc:cccckey2cccc
- name: Copy ssh configuration file
template: src=files/sshd_config dest=/etc/ssh/sshd_config
notify:
- restart ssh