78329e7b4a
Create new jobs ansible-role-functional-* for ansible-role testing, we need ssh to localhost enabled and sudo access. Otherwise, it's running tox -e functional. Update project-templates, remove extra ansible-role-functional platform jobs that are not needed anymore. This was tested in https://review.openstack.org/540779 Change-Id: I9c070893b24fffd1f528debfeb4b36e6a5ab8ca4
14 lines
418 B
YAML
14 lines
418 B
YAML
- hosts: all
|
|
name: Set up SSH login
|
|
tasks:
|
|
|
|
- name: Allow ssh login into localhost
|
|
shell:
|
|
cmd: |
|
|
# Allow user to ssh into localhost
|
|
ssh-keygen -f ~/.ssh/id_rsa -N ""
|
|
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
|
|
ssh-keyscan localhost >> ~/.ssh/known_hosts
|
|
ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts
|
|
chdir: '{{ zuul.project.src_dir }}'
|