Merge "Add PermitRootLogin option in sshd_config before leapp." into stable/train
This commit is contained in:
commit
6dc6c35c76
|
@ -252,7 +252,15 @@ outputs:
|
|||
path: "/etc/leapp/transaction/to_install"
|
||||
line: "{{ item }}"
|
||||
loop: "{{ pkg_to_install }}"
|
||||
|
||||
- name: "check sshd_config file"
|
||||
stat:
|
||||
path: "/etc/ssh/sshd_config"
|
||||
register: sshd_config_result
|
||||
- name: "add PermitRootLogin option for leapp"
|
||||
lineinfile:
|
||||
path: "/etc/ssh/sshd_config"
|
||||
regexp: "^(# *)?PermitRootLogin"
|
||||
line: "PermitRootLogin without-password"
|
||||
- name: system_upgrade_prepare step 4
|
||||
tags:
|
||||
- never
|
||||
|
|
Loading…
Reference in New Issue