Browse Source

fix ssh.socket killmode

master
Jörg Thalheim 6 years ago
parent
commit
cca6645253
  1. 0
      roles/container/files/ssh_known_hosts
  2. 2
      roles/container/files/sshd-killmode.conf
  3. 9
      roles/container/tasks/ssh.yml

0
roles/container/files/ssh_known_hosts

2
roles/container/files/sshd-killmode.conf

@ -0,0 +1,2 @@
[Service]
KillMode=process

9
roles/container/tasks/ssh.yml

@ -1,5 +1,6 @@
- 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: Write ssh_config
@ -8,7 +9,15 @@
copy: src=ssh_moduli dest=/etc/ssh/moduli mode=0644
- 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
- name: sshd.service.d
file: path=/etc/systemd/system/sshd.service.d/ state=directory
- name: ssh service KillMode
copy: src=sshd-killmode.conf dest=/etc/systemd/system/sshd.service.d/killmode.conf
notify: Reload systemd
Loading…
Cancel
Save