Migrate from gitlab to gitea
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
---
|
||||
- name: restart sshd
|
||||
service: name=sshd state=restarted
|
||||
when: gssapi.changed or dns.changed
|
||||
@@ -0,0 +1,10 @@
|
||||
---
|
||||
- name: disable gss api authentication
|
||||
lineinfile: dest=/etc/ssh/sshd_config regexp='^GSSAPIAu' state=present line='GSSAPIAuthentication no' backrefs=yes
|
||||
register: gssapi
|
||||
notify: restart sshd
|
||||
|
||||
- name: disable dns lookup
|
||||
lineinfile: dest=/etc/ssh/sshd_config regexp='^#UseDNS\syes$' state=present line='UseDNS no' backrefs=yes
|
||||
register: dns
|
||||
notify: restart sshd
|
||||
Reference in New Issue
Block a user