Merge "Add PermitRootLogin option in sshd_config before leapp." into stable/train

This commit is contained in:
Zuul 2020-08-18 06:07:12 +00:00 committed by Gerrit Code Review
commit 6dc6c35c76
1 changed files with 9 additions and 1 deletions

View File

@ -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