deploy own ssh moduli
This commit is contained in:
parent
ab6a6531c6
commit
f7d1f18132
1
roles/container/files/ssh_moduli
Symbolic link
1
roles/container/files/ssh_moduli
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/etc/ssh/moduli
|
@ -4,10 +4,11 @@
|
|||||||
template: src=sshd_config.j2 dest=/etc/ssh/sshd_config mode=0644
|
template: src=sshd_config.j2 dest=/etc/ssh/sshd_config mode=0644
|
||||||
- name: Write ssh_config
|
- name: Write ssh_config
|
||||||
template: src=ssh_config.j2 dest=/etc/ssh/ssh_config mode=0644
|
template: src=ssh_config.j2 dest=/etc/ssh/ssh_config mode=0644
|
||||||
|
- name: deploy ssh moduli
|
||||||
|
copy: src=ssh_moduli dest=/etc/ssh/moduli mode=0644
|
||||||
- name: create link-ptmx.service
|
- name: create link-ptmx.service
|
||||||
copy: src=link-ptmx.service dest=/etc/systemd/system/link-ptmx.service mode=0644
|
copy: src=link-ptmx.service dest=/etc/systemd/system/link-ptmx.service mode=0644
|
||||||
- name: enable link-ptmx.service
|
- 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
|
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
|
- name: start sshd.socket
|
||||||
service: name=sshd.socket state=started enabled=yes
|
service: name=sshd.socket state=started enabled=yes
|
||||||
|
Loading…
Reference in New Issue
Block a user