ansible/roles/sshd/tasks/main.yml

24 lines
492 B
YAML
Raw Normal View History

2022-09-04 17:25:14 +02:00
---
2022-08-30 12:31:20 +02:00
- name: set sshd config
template:
src: sshd_config.j2
dest: /etc/ssh/sshd_config
mode: '0644'
owner: root
2022-11-04 16:47:52 +01:00
- name: create authorized_keys directory
file:
state: directory
path: /etc/ssh/authorized_keys
2022-09-02 10:12:36 +02:00
- name: setup host ssh certificates
include_tasks: certs.yml
2022-08-30 12:31:20 +02:00
- name: setup alpine ssh
include_tasks: alpine.yml
when: ansible_distribution == "Alpine"
2022-10-18 12:05:45 +02:00
- name: setup arch ssh
include_tasks: archlinux.yml
when: ansible_distribution == "Archlinux"