Migrate from gitlab to gitea

This commit is contained in:
2019-02-18 20:43:55 +09:00
commit 6115a1d41c
7 changed files with 72 additions and 0 deletions
@@ -0,0 +1,4 @@
---
- name: restart sshd
service: name=sshd state=restarted
when: gssapi.changed or dns.changed
+10
View File
@@ -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