diff options
author | Miklós Fazekas <mfazekas@szemafor.com> | 2021-08-05 11:01:38 +0200 |
---|---|---|
committer | Miklós Fazekas <mfazekas@szemafor.com> | 2021-08-05 11:01:54 +0200 |
commit | afd91b19bf2bc5a04b5b6267e1d3bcfef08f4025 (patch) | |
tree | ae9a0dc445350ebdcc4ef9db7a56c62009bd0d17 | |
parent | 3f55af876caf797e89e9288aa4084897cded41bb (diff) | |
download | net-ssh-afd91b19bf2bc5a04b5b6267e1d3bcfef08f4025.tar.gz |
Ansible: Enable PasswordAuthentication
Ansible: enable password auth in sshd_config
-rw-r--r-- | test/integration/playbook.yml | 5 |
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' |