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"
|
path: "/etc/leapp/transaction/to_install"
|
||||||
line: "{{ item }}"
|
line: "{{ item }}"
|
||||||
loop: "{{ pkg_to_install }}"
|
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
|
- name: system_upgrade_prepare step 4
|
||||||
tags:
|
tags:
|
||||||
- never
|
- never
|
||||||
|
|
Loading…
Reference in New Issue