blob: f1af38647366663aa4efaaf40d5e221c4ec6a7c7 (
plain) (
tree)
|
|
- name: generate sshd configuration
template:
src: sshd_config.j2
dest: /etc/ssh/sshd_config
owner: 0
group: 0
mode: 0644
- name: include key synchronization tasks
include_tasks: synchronize_keys.yml
- name: enable and restart sshd
service:
name: sshd
state: restarted
enabled: true
- name: check ssh connection
wait_for:
port: "{{ ansible_port }}"
delay: 1
state: started
|