Skip to content

Commit

Permalink
Make sure scale_prepare_enable_ssh_login configures the active config…
Browse files Browse the repository at this point in the history
…uration.

This fixes issue IBM#473 where enabling scale_prepare_enable_ssh_login
would cause duplicate PermitRootLogin lines if it was already configured
to something else than "yes".

Signed-off-by: Jan-Frode Myklebust <[email protected]>
  • Loading branch information
janfrode committed Apr 22, 2021
1 parent c357afc commit af5d158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/core/precheck/tasks/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
- name: prepare | Enable SSH root login
lineinfile:
path: /etc/ssh/sshd_config
regexp: PermitRootLogin
regexp: ^PermitRootLogin
line: PermitRootLogin yes
state: present
notify: reload-sshd
Expand Down

0 comments on commit af5d158

Please sign in to comment.