templier-ansible/roles/ssh/tasks/main.yml
Yohann D'ANELLO 7d401e9f00
Fix SSH config
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-03-17 23:07:30 +01:00

30 lines
487 B
YAML

---
- name: Create ssh directory
file:
path: '.ssh'
mode: 0700
state: directory
- name: Create ssh configuration file directory
file:
path: '.ssh/config.d'
mode: 0755
state: directory
- name: Deploying config files
template:
src: 'config.d/{{ item }}.j2'
dest: '.ssh/config.d/{{ item }}'
loop:
- aurore
- crans
- dptinfo
- perso
- virtu
- name: Include config files
template:
src: 'config.j2'
dest: '.ssh/config'