ansible/roles/desktop-common/tasks/sshd.yml
2020-08-08 20:37:28 -05:00

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