ansible/roles/container/tasks/ssh.yml

24 lines
914 B
YAML
Raw Normal View History

- name: install openssh
pacman: name=openssh state=present
2015-04-09 10:31:45 +00:00
- name: Write sshd_config
2014-12-13 18:52:56 +00:00
template: src=sshd_config.j2 dest=/etc/ssh/sshd_config mode=0644
2015-01-08 10:47:18 +00:00
- name: Write ssh_config
template: src=ssh_config.j2 dest=/etc/ssh/ssh_config mode=0644
2015-01-14 20:17:00 +00:00
- name: deploy ssh moduli
copy: src=ssh_moduli dest=/etc/ssh/moduli mode=0644
2014-12-13 18:52:56 +00:00
- name: create link-ptmx.service
copy: src=link-ptmx.service dest=/etc/systemd/system/link-ptmx.service mode=0644
2015-04-09 10:31:45 +00:00
2014-12-13 18:52:56 +00:00
- 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
2015-04-09 10:31:45 +00:00
- name: start sshd.socket
service: name=sshd.socket state=started enabled=yes
2015-04-09 10:31:45 +00:00
- name: sshd.service.d
2016-11-25 19:51:38 +00:00
file: path=/etc/systemd/system/sshd@.service.d/ state=directory
2015-04-09 10:31:45 +00:00
- name: ssh service KillMode
copy: src=sshd-killmode.conf dest=/etc/systemd/system/sshd@.service.d/killmode.conf
2015-04-09 10:31:45 +00:00
notify: Reload systemd