ansible/roles/container/tasks/ssh.yml

11 lines
427 B
YAML
Raw Normal View History

- name: install openssh
pacman: name=openssh state=present
- name: Write sshd_config
copy: src=sshd_config dest=/etc/ssh/sshd_config mode=0644
- name: symlink /dev/pts/ptmx to /dev/ptmx for sshd pty
file: src=/dev/pts/ptmx dest=/dev/ptmx state=link
- name: tmpfiles.d/ptmx.conf
copy: src=ptmx.conf dest=/etc/tmpfiles.d/ptmx.conf mode=0644
- name: start sshd.socket
service: name=sshd.socket state=started enabled=yes