14 lines
317 B
YAML
14 lines
317 B
YAML
---
|
|
- name: copy sshd config
|
|
template:
|
|
src: ssh_sshd_config.j2
|
|
dest: /etc/ssh/sshd_config
|
|
owner: root
|
|
mode: 0644
|
|
notify:
|
|
- restart sshd
|
|
# - name: add ansible key
|
|
# authorized_key:
|
|
# user: root
|
|
# key: "{{ lookup('file', 'ansible-key.pub') }}"
|
|
# manage_dir: yes
|