- name: install openssh pacman: name=openssh state=present - name: Write sshd_config template: src=sshd_config.j2 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: create link-ptmx.service copy: src=link-ptmx.service dest=/etc/systemd/system/link-ptmx.service mode=0644 - name: enable link-ptmx.service file: src=/etc/systemd/system/link-ptmx.service dest=/etc/systemd/system/multi-user.target.wants/link-ptmx.service state=link - name: start sshd.socket service: name=sshd.socket state=started enabled=yes