summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklós Fazekas <mfazekas@szemafor.com>2021-08-05 11:01:38 +0200
committerMiklós Fazekas <mfazekas@szemafor.com>2021-08-05 11:01:54 +0200
commitafd91b19bf2bc5a04b5b6267e1d3bcfef08f4025 (patch)
treeae9a0dc445350ebdcc4ef9db7a56c62009bd0d17
parent3f55af876caf797e89e9288aa4084897cded41bb (diff)
downloadnet-ssh-afd91b19bf2bc5a04b5b6267e1d3bcfef08f4025.tar.gz
Ansible: Enable PasswordAuthentication
Ansible: enable password auth in sshd_config
-rw-r--r--test/integration/playbook.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/integration/playbook.yml b/test/integration/playbook.yml
index 75a1ee2..fb28806 100644
--- a/test/integration/playbook.yml
+++ b/test/integration/playbook.yml
@@ -92,7 +92,10 @@
lineinfile: dest='/etc/ssh/sshd_config' line='X11Forwarding no' regexp=X11Forwarding
notify: restart sshd
- name: sshd allow forward
- lineinfile: dest='/etc/ssh/sshd_config' line='PasswordAuthentication=yes' regexp=PasswordAuthentication
+ lineinfile: dest='/etc/ssh/sshd_config' line='#PasswordAuthentication no' regexp='#?PasswordAuthentication.+no'
+ notify: restart sshd
+ - name: sshd allow forward
+ lineinfile: dest='/etc/ssh/sshd_config' line='PasswordAuthentication yes' regexp=PasswordAuthentication
notify: restart sshd
- name: put NET_SSH_RUN_INTEGRATION_TESTS=YES environment
lineinfile: dest='/etc/environment' line='NET_SSH_RUN_INTEGRATION_TESTS=YES'