From 61290176d7d3c6baee5db366ec919e804b71b07c Mon Sep 17 00:00:00 2001 From: Luke Short Date: Thu, 16 Jan 2020 16:28:14 -0500 Subject: [PATCH] Quote PermitRootLogin string for the search. This avoids the error: 'PermitRootLogin' is undefined Change-Id: Ibf06ec25e4fea4faaa4534a48d62aa68b0a642a6 Signed-off-by: Luke Short --- tripleo_ansible/roles/tripleo-sshd/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tripleo_ansible/roles/tripleo-sshd/tasks/main.yml b/tripleo_ansible/roles/tripleo-sshd/tasks/main.yml index 11e17236f..d49820e8d 100644 --- a/tripleo_ansible/roles/tripleo-sshd/tasks/main.yml +++ b/tripleo_ansible/roles/tripleo-sshd/tasks/main.yml @@ -60,7 +60,7 @@ meeting expectations. when: - (tripleo_sshd_password_authentication != 'no') and - not (PermitRootLogin in tripleo_sshd_server_options) + not ('PermitRootLogin' in tripleo_sshd_server_options) - name: Adjust ssh server auth configuration lineinfile: