Skip to content

Commit 57e321c

Browse files
committed
CI: Add SSH key to .ssh for synchronize module in diagnostics.yml
1 parent 011466c commit 57e321c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/stackhpc-all-in-one.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,17 @@ jobs:
116116
run: ssh-keygen -f id_rsa -N ''
117117
working-directory: ${{ github.workspace }}/terraform/aio
118118

119+
# TODO: Remove the following step in Antelope.
120+
# NOTE: In Ansible 2.10 and lower the synchronize module used in the
121+
# ansible/diagnostics.yml playbook does not respect SSH connection
122+
# variables. This may result in Permission Denied issues if using an SSH
123+
# key that is not in ~/.ssh.
124+
- name: Copy SSH keypair to .ssh/
125+
run: |
126+
install -d ~/.ssh -m 700 &&
127+
cp id_rsa* ~/.ssh/
128+
working-directory: ${{ github.workspace }}/terraform/aio
129+
119130
- name: Generate clouds.yaml
120131
run: |
121132
cat << EOF > clouds.yaml

0 commit comments

Comments
 (0)