A
Size: a a a
A
A
Y
- name: Disable root login over SSH
lineinfile:
dest: /etc/ssh/sshd_config
regexp: "{{ item.regexp }}"
line: "PermitRootLogin no"
state: present
with_items:
- { regexp: '^PermitRootLogin' }
- { regexp: '^\#PermitRootLogin' }
notify:
- restart sshd
YZ
a
- name: Disable root login over SSH
lineinfile:
dest: /etc/ssh/sshd_config
regexp: "{{ item.regexp }}"
line: "PermitRootLogin no"
state: present
with_items:
- { regexp: '^PermitRootLogin' }
- { regexp: '^\#PermitRootLogin' }
notify:
- restart sshd