- hosts: all tasks: - name: Prepare ssh config on the host to run beaker shell: cmd: | echo "" | sudo tee -a /etc/ssh/sshd_config echo "Match address 127.0.0.1" | sudo tee -a /etc/ssh/sshd_config echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config echo "" | sudo tee -a /etc/ssh/sshd_config echo "Match address ::1" | sudo tee -a /etc/ssh/sshd_config echo " PermitRootLogin without-password" | sudo tee -a /etc/ssh/sshd_config mkdir -p .ssh ssh-keygen -f ~/.ssh/id_rsa -b 2048 -P "" -m PEM <<&1 --no-user-install fi chdir: '{{ ansible_user_dir }}/workspace' executable: /bin/bash environment: '{{ zuul | zuul_legacy_vars }}'