blob: 8bc88cda6f7bb169af1ee97e268208a514cf00e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
---
- name: ssh get vars
include_vars: default.yml
- name: ssh get OS vars
include_vars: '{{ item }}'
with_first_found:
- '{{ ansible_distribution }}.yml'
- default.yml
- name: ssh get host-specific vars
include_vars: '{{ item }}'
with_first_found:
- files:
- 'roles/ssh/hosts/{{ ansible_fqdn }}.yml'
skip: true
- name: ssh_config conf
template: src='{{ item }}' dest='{{ ssh_config_file }}' owner=root group='{{ ssh_group }}' mode=0644
with_first_found:
- files:
- '../hosts/ssh_config.{{ ansible_fqdn }}'
- 'ssh_config.{{ ansible_distribution }}'
- ssh_config
notify:
- ssh restart
- name: sshd_config conf
template: src='{{ item }}' dest='{{ sshd_config_file }}' owner=root group='{{ ssh_group }}' mode=0644
with_first_found:
- files:
- '../hosts/sshd_config.{{ ansible_fqdn }}'
- 'sshd_config.{{ ansible_distribution }}'
- sshd_config
notify:
- ssh restart
|