Browse Source

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

changes/39/746639/1
Zuul 12 months ago
committed by Gerrit Code Review
parent
commit
6dc6c35c76
  1. 10
      deployment/tripleo-packages/tripleo-packages-baremetal-puppet.yaml

10
deployment/tripleo-packages/tripleo-packages-baremetal-puppet.yaml

@ -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…
Cancel
Save