ansible/roles/desktop/tasks/sshd.yml

20 lines
386 B
YAML

#!/usr/bin/ansible-playbook
# vim:ft=ansible:
---
- name: Configure desktop system
block:
- name: Copy system configs
template:
src: sshd_config
dest: "/etc/ssh/sshd_config"
mode: "0644"
notify: restart sshd
- name: Start services
systemd:
name: "{{ item }}"
enabled: yes
state: started
loop:
- sshd.service
become: yes