Fix ssh auth config settings labels
This commit is contained in:
parent
fe0cd3ab67
commit
4069d8a77a
@ -7,20 +7,16 @@
|
||||
replace: "{{ item.value }}"
|
||||
notify: [restart-sshd]
|
||||
loop:
|
||||
- name: disable root login
|
||||
regex: "^.*PermitRootLogin (yes|no).*$"
|
||||
- regex: "^.*PermitRootLogin (yes|no).*$"
|
||||
value: PermitRootLogin no
|
||||
- name: disable password auth
|
||||
regex: "^.*PasswordAuthentication (yes|no).*$"
|
||||
- regex: "^.*PasswordAuthentication (yes|no).*$"
|
||||
value: PasswordAuthentication no
|
||||
- name: disable challenge response auth
|
||||
regex: "^.*ChallengeResponseAuthentication (yes|no).*$"
|
||||
- regex: "^.*ChallengeResponseAuthentication (yes|no).*$"
|
||||
value: ChallengeResponseAuthentication no
|
||||
- name: disable GSSAPI auth
|
||||
regex: "^.*GSSAPIAuthentication (yes|no).*$"
|
||||
- regex: "^.*GSSAPIAuthentication (yes|no).*$"
|
||||
value: GSSAPIAuthentication no
|
||||
loop_control:
|
||||
label: "{{ item.name }}"
|
||||
label: "{{ item.value }}"
|
||||
|
||||
- name: Disable dynamic MOTD on debian systems
|
||||
when: ansible_os_family == "Debian"
|
||||
|
Reference in New Issue
Block a user